From mboxrd@z Thu Jan 1 00:00:00 1970 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 6FCB6C63705 for ; Thu, 8 Dec 2022 07:29:16 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229704AbiLHH3P (ORCPT ); Thu, 8 Dec 2022 02:29:15 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34722 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229703AbiLHH3N (ORCPT ); Thu, 8 Dec 2022 02:29:13 -0500 Received: from out30-1.freemail.mail.aliyun.com (out30-1.freemail.mail.aliyun.com [115.124.30.1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D0A2046666; Wed, 7 Dec 2022 23:29:08 -0800 (PST) X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R561e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=ay29a033018046060;MF=ziyangzhang@linux.alibaba.com;NM=0;PH=DS;RN=8;SR=0;TI=SMTPD_---0VWpNSYT_1670484541; Received: from localhost.localdomain(mailfrom:ZiyangZhang@linux.alibaba.com fp:SMTPD_---0VWpNSYT_1670484541) by smtp.aliyun-inc.com; Thu, 08 Dec 2022 15:29: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 V5 0/2] cleanup and bugfix for xfs tests related to btree format Date: Thu, 8 Dec 2022 15:28:41 +0800 Message-Id: <20221208072843.1866615-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. 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