From c11f2c9130808ec6a40637587a4918c9b1ac6888 Mon Sep 17 00:00:00 2001 From: "Darrick J. Wong" Date: Thu, 20 Feb 2025 13:47:03 -0800 Subject: [PATCH] xfs/122: disable this test for any codebase that knows about metadir All of the ondisk structure size checks from this test were copied to the build time checks in xfs_ondisk.h. This means that the kernel and xfsprogs build processes check the structure sizes, which means that fstests no longer needs to do that. Signed-off-by: "Darrick J. Wong" Reviewed-by: Christoph Hellwig Signed-off-by: Zorro Lang --- tests/xfs/122 | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tests/xfs/122 b/tests/xfs/122 index a96894884..e96ef2fe9 100755 --- a/tests/xfs/122 +++ b/tests/xfs/122 @@ -15,6 +15,12 @@ _begin_fstest other auto quick clone realtime _require_command "$INDENT_PROG" indent +# We ported all the ondisk size checks to xfs_ondisk.h in both the kernel and +# xfsprogs libxfs when we added the metadir feature. If mkfs supports metadir +# then we don't have to run this test anymore. +$MKFS_XFS_PROG --help 2>&1 | grep -q metadir && \ + _notrun "struct size checks moved to libxfs/xfs_ondisk.h" + # Starting in Linux 6.1, the EFI log formats were adjusted away from using # single-element arrays as flex arrays. _wants_kernel_commit 03a7485cd701 \ -- 2.49.0