From patchwork Thu Nov 22 17:58:22 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: 10694627 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 8CC055A4 for ; Thu, 22 Nov 2018 17:58:28 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 83608287DC for ; Thu, 22 Nov 2018 17:58:28 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 76B6F2AD07; Thu, 22 Nov 2018 17:58:28 +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 1EA17287DC for ; Thu, 22 Nov 2018 17:58:28 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2406042AbeKWEix (ORCPT ); Thu, 22 Nov 2018 23:38:53 -0500 Received: from userp2120.oracle.com ([156.151.31.85]:37236 "EHLO userp2120.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2405989AbeKWEix (ORCPT ); Thu, 22 Nov 2018 23:38:53 -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 wAMHss8N098420; Thu, 22 Nov 2018 17:58:25 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=WbthUxv3AaHmCzYIO/Hap7HGt2cfH3Ds+ple+FGUXWk=; b=wp4kN8vVxcMeMMmbFxU4OtIKiJF8L51o/RIj8q8b4KvLcA2U7vNL+4lqo5o+9WY8omRL fVhpDqejYCWbP2tpox+SeDhB2kjYD9VyF9ee4yCAzXA43GLkvJgsQnbWpFCqP0kvbs3u mOsE7USeMDhS57WK7yyzOL0D/wz1AEFIqltrG0cY5w+a1nyCOObD2Fbv38HhuAvLAWA8 6Jtl1K+bw22F0lOzn0WTCZWnaGXMFbT60Yvq9clfzM9Po/j/y8P/oeTXI2stMNGpOsVZ vs8SDDqId9zWqWYGqx5A4LW3csajFdPJrCuu+jBCzIhWsqdXbZRgm4lS6yaIAtR7q8vS gQ== Received: from userv0022.oracle.com (userv0022.oracle.com [156.151.31.74]) by userp2120.oracle.com with ESMTP id 2ntbmqyx6c-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Thu, 22 Nov 2018 17:58:25 +0000 Received: from aserv0122.oracle.com (aserv0122.oracle.com [141.146.126.236]) by userv0022.oracle.com (8.14.4/8.14.4) with ESMTP id wAMHwOg1016210 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Thu, 22 Nov 2018 17:58:24 GMT Received: from abhmp0017.oracle.com (abhmp0017.oracle.com [141.146.116.23]) by aserv0122.oracle.com (8.14.4/8.14.4) with ESMTP id wAMHwNUH024155; Thu, 22 Nov 2018 17:58:23 GMT Received: from localhost (/67.169.218.210) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Thu, 22 Nov 2018 09:58:23 -0800 Subject: [PATCH v3 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, 22 Nov 2018 09:58:22 -0800 Message-ID: <154290950237.1218.9937108728673485814.stgit@magnolia> User-Agent: StGit/0.17.1-dirty MIME-Version: 1.0 X-Proofpoint-Virus-Version: vendor=nai engine=5900 definitions=9085 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=999 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1810050000 definitions=main-1811220160 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 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-rc3, particularly with copy_file_range and reflink, all of which hopefully have been fixed by the patch series that Dave Chinner posted to the xfs list yesterday. A branch with the fstests patches can be downloaded here[1]. --D [1] https://git.kernel.org/pub/scm/linux/kernel/git/djwong/xfstests-dev.git/log/?h=fsstress-clone