From patchwork Tue Feb 12 02:17:42 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Darrick J. Wong" X-Patchwork-Id: 10807211 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 AB6B613B4 for ; Tue, 12 Feb 2019 02:17:47 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 91F6B2B2CF for ; Tue, 12 Feb 2019 02:17:47 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 86CDE2B2BC; Tue, 12 Feb 2019 02:17:47 +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 113962B2BC for ; Tue, 12 Feb 2019 02:17:47 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727659AbfBLCRq (ORCPT ); Mon, 11 Feb 2019 21:17:46 -0500 Received: from userp2130.oracle.com ([156.151.31.86]:36516 "EHLO userp2130.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727265AbfBLCRq (ORCPT ); Mon, 11 Feb 2019 21:17:46 -0500 Received: from pps.filterd (userp2130.oracle.com [127.0.0.1]) by userp2130.oracle.com (8.16.0.27/8.16.0.27) with SMTP id x1C2EQWs023614; Tue, 12 Feb 2019 02:17:44 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=5eMoABcs0/M1GI13vuzJfaBFadJbI+KhYmJwYQh1xk8=; b=BzJEwOu9vT5gQL+owywFrJnUZlIAwmciaSU5vVNY367Fir+4F2TEfBSCJu/Eu/Mp9Jd2 aEyH+/arvwv5xmWUGWt+WszBhQrsYMm9azs7hmYLS7U+dFI+30ExdXJAOaj+4EWSEQlz 5Qkp9ZgnoV5XZhIJCJriVlaZ4DXiNU5phTeN2yQgYzXizCo6ClIehhjN+vpVLEDLJMGE 1/sed6GlcE4uMr5+Ye2c+D7qFpXo1k6nZSLH4G6fTK5VBMLYU1lTC9I9vdktQlNqT0aq YMNVqHiOG8cjkLvZbFTcqlIdeaG8jxLeLQSXTBq/p8HiSSs4g7AVrzifTpNYFOB+OXY/ +w== Received: from aserv0021.oracle.com (aserv0021.oracle.com [141.146.126.233]) by userp2130.oracle.com with ESMTP id 2qhrek99m2-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 12 Feb 2019 02:17:44 +0000 Received: from aserv0122.oracle.com (aserv0122.oracle.com [141.146.126.236]) by aserv0021.oracle.com (8.14.4/8.14.4) with ESMTP id x1C2HhMx010621 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 12 Feb 2019 02:17:43 GMT Received: from abhmp0022.oracle.com (abhmp0022.oracle.com [141.146.116.28]) by aserv0122.oracle.com (8.14.4/8.14.4) with ESMTP id x1C2Hhxa021846; Tue, 12 Feb 2019 02:17:43 GMT Received: from localhost (/10.159.237.14) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Mon, 11 Feb 2019 18:17:43 -0800 Subject: [PATCH 0/2] fstests: incore unlinked list From: "Darrick J. Wong" To: guaneryu@gmail.com, darrick.wong@oracle.com Cc: linux-xfs@vger.kernel.org, fstests@vger.kernel.org Date: Mon, 11 Feb 2019 18:17:42 -0800 Message-ID: <154993786231.2062.8490515215533507881.stgit@magnolia> User-Agent: StGit/0.17.1-dirty MIME-Version: 1.0 X-Proofpoint-Virus-Version: vendor=nai engine=5900 definitions=9164 signatures=668683 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 priorityscore=1501 malwarescore=0 suspectscore=0 phishscore=0 bulkscore=0 spamscore=0 clxscore=1015 lowpriorityscore=0 mlxscore=0 impostorscore=0 mlxlogscore=999 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1810050000 definitions=main-1902120014 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 regression tests for the new XFS incore unlinked backref cache feature. The first patch teaches the XFS debug knob code to _notrun a test if the kernel supports debug knob discovery (via sysfs) but doesn't advertise the particular knob. The second patch adds four new regression tests. The two generic/ tests exercise the creation and removal of O_TMPFILE files (or files which have been created, opened, unlinked, and then closed), which ensures that the filesystem can demonstrate that behavior without problems. The two xfs/ tests examine the same behavior, but they deliberately skip the backref cache lookups to ensure that the old code still works. If you're going to start using this mess, you probably ought to just pull from my git trees, which are linked below. This is an extraordinary way to destroy everything. Enjoy! Comments and questions are, as always, welcome. --D kernel git tree: https://git.kernel.org/cgit/linux/kernel/git/djwong/xfs-linux.git/log/?h=incore-unlinked-list xfsprogs git tree: https://git.kernel.org/cgit/linux/kernel/git/djwong/xfsprogs-dev.git/log/?h=incore-unlinked-list fstests git tree: https://git.kernel.org/cgit/linux/kernel/git/djwong/xfstests-dev.git/log/?h=incore-unlinked-list