From: Disha Goel Date: Mon, 23 Mar 2026 12:40:05 +0000 (+0530) Subject: generic/730: skip test if DAX mount option is enabled X-Git-Tag: v2026.04.20~11 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=0bece2e05be1c5179654f7437519f80eeef71111;p=xfstests-dev.git generic/730: skip test if DAX mount option is enabled 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 Reviewed-by: Zorro Lang Reviewed-by: Ojaswin Mujoo Signed-off-by: Zorro Lang --- diff --git a/tests/generic/730 b/tests/generic/730 index 6b5d3196..1798afb7 100755 --- a/tests/generic/730 +++ b/tests/generic/730 @@ -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`