]> git-server-git.apps.pok.os.sepia.ceph.com Git - xfstests-dev.git/commitdiff
generic/730: skip test if DAX mount option is enabled
authorDisha Goel <disgoel@linux.ibm.com>
Mon, 23 Mar 2026 12:40:05 +0000 (18:10 +0530)
committerZorro Lang <zlang@kernel.org>
Wed, 1 Apr 2026 15:07:25 +0000 (23:07 +0800)
The generic/730 test utilizes the scsi_debug driver to create a
synthetic SCSI block device. Since scsi_debug does not support
DAX capabilities, attempting to mount it with "-o dax" results
in failures (specifically on ext4).

Since this test is not DAX-related, exclude it when DAX is
specified in MOUNT_OPTIONS to avoid compatibility issues with
scsi_debug.

Signed-off-by: Disha Goel <disgoel@linux.ibm.com>
Reviewed-by: Zorro Lang <zlang@redhat.com>
Reviewed-by: Ojaswin Mujoo <ojaswin@linux.ibm.com>
Signed-off-by: Zorro Lang <zlang@kernel.org>
tests/generic/730

index 6b5d319675f741a824e46405ea1508ea2e70d2af..1798afb7deea994715512f2f9d4ee49bb86392ac 100755 (executable)
@@ -25,6 +25,9 @@ _cleanup()
 _require_test
 _require_block_device $TEST_DEV
 _require_scsi_debug
+# scsi_debug doesn't support DAX, so skip this test if MOUNT_OPTIONS
+# contains "dax"
+_exclude_scratch_mount_option "dax"
 
 size=$(_small_fs_size_mb 256)
 SCSI_DEBUG_DEV=`_get_scsi_debug_dev 512 512 0 $size`