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>
_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`