@@ -1220,6 +1220,9 @@ _scratch_mkfs_blocksized()
if ! [[ $blocksize =~ $re ]] ; then
_notrun "error: _scratch_mkfs_sized: block size \"$blocksize\" not an integer."
fi
+ if [ $blocksize -lt $(get_page_size) ]; then
+ _exclude_scratch_mount_option dax
+ fi
case $FSTYP in
btrfs)
@@ -19,7 +19,6 @@ _begin_fstest auto quick dangerous_fuzzers
# real QA test starts here
_supported_fs ext4
-_require_test
_require_scratch_nocheck
_require_xfs_io_command "falloc"
_require_xfs_io_command "pwrite"
@@ -28,8 +27,8 @@ _require_xfs_io_command "fpunch"
_require_command "$DEBUGFS_PROG" debugfs
# In order to accurately construct the damaged extent in the following
-# test steps, the blocksize is set to 1024 here
-_scratch_mkfs "-b 1024" > $seqres.full 2>&1
+# test steps, the block size is set to 1024 here
+_scratch_mkfs_blocksized 1024 >> $seqres.full 2>&1
_scratch_mount
TEST_FILE="${SCRATCH_MNT}/testfile"