From patchwork Tue Nov 20 21:56:41 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Darrick J. Wong" X-Patchwork-Id: 10691299 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 9CC051709 for ; Tue, 20 Nov 2018 21:56:50 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 8B7D828723 for ; Tue, 20 Nov 2018 21:56:50 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 7F77B2ACBC; Tue, 20 Nov 2018 21:56:50 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-8.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 37E1F28801 for ; Tue, 20 Nov 2018 21:56:50 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1725903AbeKUI2H (ORCPT ); Wed, 21 Nov 2018 03:28:07 -0500 Received: from userp2120.oracle.com ([156.151.31.85]:48396 "EHLO userp2120.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725851AbeKUI2G (ORCPT ); Wed, 21 Nov 2018 03:28:06 -0500 Received: from pps.filterd (userp2120.oracle.com [127.0.0.1]) by userp2120.oracle.com (8.16.0.22/8.16.0.22) with SMTP id wAKLrsjg113713; Tue, 20 Nov 2018 21:56:47 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=subject : from : to : cc : date : message-id : mime-version : content-type : content-transfer-encoding; s=corp-2018-07-02; bh=BCh9xlyGczN5/qa62T+4y35lGGZvfJpoOoM9KCpcmW8=; b=JbMFmY+eF2lTQhk3LISKQg//1o8xhS2Bf46r1SgPUbgxcTM5gA00Mi0UizkgbyzAIOVZ CjEb9AuDiZdiigiNs3V/9BT0zNAtlGvwpnmV6ngBFAc6QHrngSDr+FDMbh6ssFQmMZ34 Fdfvl35piaWUE/9Uex+SRdwOIHM9ArVjVavPzh9arziSJYWRYBmAOMButLlfSbfFkBhW aCcg1PfMyKNH6bVmUWK77OzWE9QlpsBhC6fUS18tkEasTK4iHJPmRJ5zYOiFGkT7YZDx MRljTEPRXBMsRMBXebCicIS2clKjg3AelfL4cPC29eOya3+v7xrpRdLkv2zmlf0LHD4b CQ== Received: from userv0022.oracle.com (userv0022.oracle.com [156.151.31.74]) by userp2120.oracle.com with ESMTP id 2ntbmqp9hg-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 20 Nov 2018 21:56:47 +0000 Received: from userv0122.oracle.com (userv0122.oracle.com [156.151.31.75]) by userv0022.oracle.com (8.14.4/8.14.4) with ESMTP id wAKLugWd023808 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 20 Nov 2018 21:56:42 GMT Received: from abhmp0008.oracle.com (abhmp0008.oracle.com [141.146.116.14]) by userv0122.oracle.com (8.14.4/8.14.4) with ESMTP id wAKLufBU020379; Tue, 20 Nov 2018 21:56:42 GMT Received: from localhost (/10.145.178.163) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Tue, 20 Nov 2018 13:56:41 -0800 Subject: [PATCH v2 00/10] xfstests: add copy/dedupe/clone to fsx/fsstress From: "Darrick J. Wong" To: guaneryu@gmail.com, darrick.wong@oracle.com Cc: linux-xfs@vger.kernel.org, fstests@vger.kernel.org Date: Tue, 20 Nov 2018 13:56:41 -0800 Message-ID: <154275100143.8611.10235098565750994724.stgit@magnolia> User-Agent: StGit/0.17.1-dirty MIME-Version: 1.0 X-Proofpoint-Virus-Version: vendor=nai engine=5900 definitions=9083 signatures=668683 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 suspectscore=0 malwarescore=0 phishscore=0 bulkscore=0 spamscore=0 mlxscore=0 mlxlogscore=792 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1810050000 definitions=main-1811200192 Sender: linux-xfs-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-xfs@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Hi all, This series adds to fsx and fsstress support for FICLONERANGE, FIDEDUPERANGE, and copy_file_range. First, I fix some gcc warnings in fsx. Then, I teach fsx to read the fsx file after every operation to compare it to the good buffer. This made it easier for me to find corruption problem as soon as they happen, though I'm not sure it really makes sense to have this enabled by default because of the behavior change that it makes. Next come a couple of generic reworks to fsx that we need to support the new clone/dedupe/copy commands. Patches 5-6 add clone and dedupe to fsx. Patches 7-8 add copy_file_range support to fsstress and fsx. Dave Chinner contributed some cleanups to the fsx patches as the 9th patch. The last patch fixes the common/dump tests to disable the new commands so that the dump/restore tests continue to function exactly as they have for years. There are known failures in 4.20-rc3, particularly with copy_file_range, which hopefully have been fixed by the patch series that Dave Chinner posted to the xfs list yesterday. Branch can be downloaded here[1]. --D [1] https://git.kernel.org/pub/scm/linux/kernel/git/djwong/xfstests-dev.git/log/?h=fsstress-clone