public inbox for fstests@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] generic/730: skip on ext4 when dax is enabled
@ 2026-03-18  8:18 Disha Goel
  2026-03-20 15:56 ` Zorro Lang
  0 siblings, 1 reply; 4+ messages in thread
From: Disha Goel @ 2026-03-18  8:18 UTC (permalink / raw)
  To: fstests; +Cc: zlang, disgoel

The generic/730 test utilizes the scsi_debug driver to create a
synthetic SCSI block device for testing. However, scsi_debug does
not support DAX capabilities.

When xfstests is configured with DAX mount options, ext4 strictly
validates the block device during the mount phase. This results
in a mount failure:
  EXT4-fs (sdc): DAX unsupported by block device.

Skip this test for ext4 when the 'dax' mount option is present to
avoid false failures.

Signed-off-by: Disha Goel <disgoel@linux.ibm.com>
---
 tests/generic/730 | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/tests/generic/730 b/tests/generic/730
index 6b5d3196..b42f5f63 100755
--- a/tests/generic/730
+++ b/tests/generic/730
@@ -20,6 +20,9 @@ _cleanup()
 . ./common/filter
 . ./common/scsi_debug
 
+if [ "$FSTYP" == "ext4" ] && echo "$MOUNT_OPTIONS" | grep -q "dax"; then
+	_notrun "ext4 does not support dax mounts on scsi_debug"
+fi
 
 # We don't actually use the test device, but we need a block based fs
 _require_test
-- 
2.45.1


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

end of thread, other threads:[~2026-03-23 12:39 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-03-18  8:18 [PATCH] generic/730: skip on ext4 when dax is enabled Disha Goel
2026-03-20 15:56 ` Zorro Lang
2026-03-23  6:07   ` Christoph Hellwig
2026-03-23 12:38     ` Disha Goel

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