From patchwork Fri Dec 7 06:23:12 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: 10717499 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 E979B17D5 for ; Fri, 7 Dec 2018 06:23:18 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id D0DEA2EB2F for ; Fri, 7 Dec 2018 06:23:18 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id C32282EB37; Fri, 7 Dec 2018 06:23:18 +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=ham 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 6F61F2EB2F for ; Fri, 7 Dec 2018 06:23:18 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1725963AbeLGGXR (ORCPT ); Fri, 7 Dec 2018 01:23:17 -0500 Received: from aserp2130.oracle.com ([141.146.126.79]:33638 "EHLO aserp2130.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725952AbeLGGXR (ORCPT ); Fri, 7 Dec 2018 01:23:17 -0500 Received: from pps.filterd (aserp2130.oracle.com [127.0.0.1]) by aserp2130.oracle.com (8.16.0.22/8.16.0.22) with SMTP id wB76IXR1114798; Fri, 7 Dec 2018 06:23:15 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=t5UnETl4X4LVQgb3gRw7ZqQIDoMkEYYFZi69gdYa8Sc=; b=tHIcx1Y2b8Qsr8MX95QbXH6buK/1fnDF8zhzp4b+QbT+q6mOduzVhU7C17AmdvizvWM+ VnVlw761RE3fcLwyod+rdzMnp7r2HsghqbQTUTjozHeH1ffcipDOdCQ8Y4WifMv4z/wL DinmfP5SRbibyyP3uroFdrlh4nICKw/QsV91r1UNvUPYrMnBTFOBzq9GbPmhQ7C79gVK QHT6MZvPh3eCX8N/jMY4Ti60oz7WEDWxrQzjUL5fSATNwFRKKDLaUjRwydgbHcMdSeAD f2YwU9tApJoK8YWqg4RmC2Hbu3+j2JsoVdJ3VmoSYiwoDgvA1TZatlgIFOXxb1/Nvaae TQ== Received: from userv0021.oracle.com (userv0021.oracle.com [156.151.31.71]) by aserp2130.oracle.com with ESMTP id 2p3ftfg1np-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Fri, 07 Dec 2018 06:23:15 +0000 Received: from userv0121.oracle.com (userv0121.oracle.com [156.151.31.72]) by userv0021.oracle.com (8.14.4/8.14.4) with ESMTP id wB76NER5002431 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Fri, 7 Dec 2018 06:23:14 GMT Received: from abhmp0011.oracle.com (abhmp0011.oracle.com [141.146.116.17]) by userv0121.oracle.com (8.14.4/8.13.8) with ESMTP id wB76ND68025656; Fri, 7 Dec 2018 06:23:14 GMT Received: from localhost (/10.159.153.113) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Thu, 06 Dec 2018 22:23:13 -0800 Subject: [PATCH v4 00/12] 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: Thu, 06 Dec 2018 22:23:12 -0800 Message-ID: <154416379233.15344.4377231692638417530.stgit@magnolia> User-Agent: StGit/0.17.1-dirty MIME-Version: 1.0 X-Proofpoint-Virus-Version: vendor=nai engine=5900 definitions=9099 signatures=668679 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 suspectscore=0 malwarescore=0 phishscore=0 bulkscore=0 spamscore=0 mlxscore=0 mlxlogscore=945 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1810050000 definitions=main-1812070054 Sender: fstests-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: fstests@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. The only differences since v3 have been to deal with copy_file_range's short copies correctly...ish. The first three patches fix gcc warnings in fsx and fsstress. Patch 4 adds an -X option to fsx that causes it to re-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 it slows down fsx and perturbs in-core state considerably. Patche 5-6 are a couple of generic reworks to fsx that we need to support the new clone/dedupe/copy commands. Patches 7-8 add clone and dedupe to fsx. Patches 9-10 add copy_file_range support to fsstress and fsx. Patch 11 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. Patch 12 contains long-soak fsx tests designed to draw out corruption problems by running (1 million * TIME_FACTOR) operations. These will be running all weekend during the US Thanksgiving holiday, though I hope we've sorted out all the problems. There are known failures in XFS on 4.20-rc5, particularly with copy_file_range and reflink, all of which hopefully will have been fixed by the time 4.21 comes out. Dave Chinner has more fixes in progress to correct various flaws of copy_file_range. --D