Linux XFS filesystem development
 help / color / mirror / Atom feed
* [PATCH] xfs/030: skip this test if metadir gets enabled anyway
@ 2026-08-26 18:30 Darrick J. Wong
  2026-08-27 17:04 ` Zorro Lang
  0 siblings, 1 reply; 2+ messages in thread
From: Darrick J. Wong @ 2026-08-26 18:30 UTC (permalink / raw)
  To: Zorro Lang; +Cc: fstests, xfs

From: Darrick J. Wong <djwong@kernel.org>

This test requires metadir not to be enabled, but under certain
circumstances (aka _scratch_mkfs_xfs trying to be helpful and dropping
MKFS_OPTIONS) it can get enabled anyway if mkfs.xfs defaults to enabling
metadir.  Check the fs feature set after formatting and skip the test if
metadir gets enabled.

Signed-off-by: "Darrick J. Wong" <djwong@kernel.org>
---
 tests/xfs/030 |    1 +
 1 file changed, 1 insertion(+)

diff --git a/tests/xfs/030 b/tests/xfs/030
index 22fbdb2fdbc999..d0b8f413bb9afd 100755
--- a/tests/xfs/030
+++ b/tests/xfs/030
@@ -72,6 +72,7 @@ else
 		_notrun "PQuota are enabled, test needs controlled sb recovery"
 	_scratch_unmount
 fi
+_xfs_has_feature "$SCRATCH_DEV" metadir && _notrun "metadir enabled anyway"
 clear=""
 eval `_scratch_xfs_db -r -c "sb 1" -c stack | perl -ne '
 	if (/byte offset (\d+), length (\d+)/) {

^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2026-08-27 17:04 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-08-26 18:30 [PATCH] xfs/030: skip this test if metadir gets enabled anyway Darrick J. Wong
2026-08-27 17:04 ` Zorro Lang

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox