FS/XFS testing framework
 help / color / mirror / Atom feed
* [PATCH] common/xfs: filter mkfs.xfs stripe geometry warning
@ 2026-08-24  6:56 Manognya Singuru
  2026-08-24 16:11 ` Darrick J. Wong
  0 siblings, 1 reply; 4+ messages in thread
From: Manognya Singuru @ 2026-08-24  6:56 UTC (permalink / raw)
  To: fstests; +Cc: zlang, djwong, Manognya Singuru

mkfs.xfs prints a warning when creating small filesystems on devices
that advertise stripe geometry:

mkfs.xfs: small data volume, ignoring data volume stripe unit XXX and
stripe width XXX

This warning causes several XFS tests to fail their golden output
comparison when SCRATCH_DEV has striped device geometry such as
scsi_debug devices.

Filter the warning in _try_scratch_mkfs_xfs() instead of
updating individual test expected outputs, as the filesystem is created
successfully and the warning does not indicate a failure.

Signed-off-by: Manognya Singuru <msinguru@redhat.com>
---
Tested with xfs/015, xfs/030, xfs/041, xfs/042, xfs/075, xfs/104,
xfs/109, xfs/168 and xfs/177.

Output for xfs/030 before the filter:
QA output created by 030
...
+mkfs.xfs: small data volume, ignoring data volume stripe unit 64 and
stripe width 64
...
Ran: xfs/030
Failures: xfs/030
Failed 1 of 1 tests

Output for xfs/030 after adding the filter:
xfs/030             15s
Ran: xfs/030
Passed all 1 tests

 common/xfs | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/common/xfs b/common/xfs
index 81add208..98981e62 100644
--- a/common/xfs
+++ b/common/xfs
@@ -157,7 +157,8 @@ _try_scratch_mkfs_xfs()
 	local mkfs_cmd="`_scratch_mkfs_xfs_opts`"
 	local mkfs_filter="sed -e '/less than device physical sector/d' \
 			       -e '/switching to logical sector/d' \
-			       -e '/Default configuration/d'"
+			       -e '/Default configuration/d' \
+			       -e '/small data volume, ignoring data volume stripe unit/d'"
 	local tmp=`mktemp -u`
 	local mkfs_status
 
-- 
2.54.0


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

end of thread, other threads:[~2026-08-25 15:49 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-08-24  6:56 [PATCH] common/xfs: filter mkfs.xfs stripe geometry warning Manognya Singuru
2026-08-24 16:11 ` Darrick J. Wong
2026-08-25  4:33   ` Manognya Singuru
2026-08-25 15:49     ` Eric Sandeen

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