@@ -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 \