xfs: force file creation to the data device for certain layout tests
[xfstests-dev.git] / tests / xfs / 120
index 8965ca0921cdf60f30dff1e9ac1c861cc97c5db4..f5eb14cce09afab6d43a599036858a79aa73460e 100755 (executable)
@@ -30,7 +30,6 @@ _cleanup()
 
 # real QA test starts here
 _supported_fs xfs
-_supported_os Linux
 
 _require_scratch
 test -n "${FORCE_FUZZ}" || _require_scratch_xfs_crc
@@ -48,6 +47,7 @@ echo "+ mount fs image"
 _scratch_mount
 blksz="$(stat -f -c '%s' "${SCRATCH_MNT}")"
 nr="$((blksz * 2 / 16))"
+_xfs_force_bdev data $SCRATCH_MNT
 
 echo "+ make some files"
 $XFS_IO_PROG -f -c "pwrite -S 0x62 0 $((blksz * nr))" -c 'fsync' "${SCRATCH_MNT}/bigfile" >> $seqres.full
@@ -74,7 +74,7 @@ if _try_scratch_mount >> $seqres.full 2>&1; then
 fi
 
 echo "+ repair fs"
-_scratch_xfs_repair >> $seqres.full 2>&1
+_repair_scratch_fs >> $seqres.full 2>&1
 
 echo "+ mount image (2)"
 _scratch_mount