Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 4D035C4167B for ; Mon, 12 Dec 2022 05:57:20 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231174AbiLLF5S (ORCPT ); Mon, 12 Dec 2022 00:57:18 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57924 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231213AbiLLF5N (ORCPT ); Mon, 12 Dec 2022 00:57:13 -0500 Received: from out30-45.freemail.mail.aliyun.com (out30-45.freemail.mail.aliyun.com [115.124.30.45]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3B560CE28; Sun, 11 Dec 2022 21:57:09 -0800 (PST) X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R181e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=ay29a033018046059;MF=ziyangzhang@linux.alibaba.com;NM=0;PH=DS;RN=8;SR=0;TI=SMTPD_---0VX1Kn3b_1670824614; Received: from localhost.localdomain(mailfrom:ZiyangZhang@linux.alibaba.com fp:SMTPD_---0VX1Kn3b_1670824614) by smtp.aliyun-inc.com; Mon, 12 Dec 2022 13:57:06 +0800 From: Ziyang Zhang To: fstests@vger.kernel.org, linux-xfs@vger.kernel.org Cc: zlang@redhat.com, david@fromorbit.com, djwong@kernel.org, hsiangkao@linux.alibaba.com, allison.henderson@oracle.com, Ziyang Zhang Subject: [PATCH V6 0/2] cleanup and bugfix for xfs tests related to btree format Date: Mon, 12 Dec 2022 13:56:43 +0800 Message-Id: <20221212055645.2067020-1-ZiyangZhang@linux.alibaba.com> X-Mailer: git-send-email 2.18.4 Precedence: bulk List-ID: X-Mailing-List: fstests@vger.kernel.org The first patch add a helper in common/xfs to export the inode core size which is needed by some xfs test cases. The second patch ensure that S_IFDIR.FMT_BTREE is in btree format while populating dir. V6: - correctly call _xfs_get_inode_core_bytes() in __populate_xfs_create_btree_dir() V5: - rename _xfs_inode_core_bytes() to _xfs_get_inode_core_bytes() - rename _xfs_inode_size() to _xfs_get_inode_size() - use one pipe in _xfs_get_inode_size() - use local variables in __populate_xfs_create_btree_dir() V4: - let the new helper function accept the "missing" parameter - make _xfs_inode_core_bytes echo 176 or 96 so tests can work correctly on both v4 and v5 V3: - refactor xfs tests cases using inode core size V2: - take Darrick's advice to cleanup code Ziyang Zhang (2): common/xfs: Add a helper to export inode core size common/populate: Ensure that S_IFDIR.FMT_BTREE is in btree format common/populate | 34 +++++++++++++++++++++++++++++++++- common/xfs | 24 ++++++++++++++++++++++++ tests/xfs/335 | 3 ++- tests/xfs/336 | 3 ++- tests/xfs/337 | 3 ++- tests/xfs/341 | 3 ++- tests/xfs/342 | 3 ++- 7 files changed, 67 insertions(+), 6 deletions(-) -- 2.18.4