xfs: force file creation to the data device for certain layout tests
[xfstests-dev.git] / tests / xfs / 235
index 669f58b004f998e0ba75cfdf8a1abef2ca3a8a93..55f5c5a67b78dc8e895049d35a47de11bb6d9c19 100755 (executable)
@@ -28,7 +28,6 @@ _cleanup()
 . ./common/attr
 
 # real QA test starts here
-_supported_os Linux
 _supported_fs xfs
 _require_xfs_scratch_rmapbt
 test -n ${FORCE_FUZZ} || _require_scratch_xfs_crc
@@ -41,7 +40,8 @@ _scratch_mkfs_xfs > /dev/null
 echo "+ mount fs image"
 _scratch_mount
 blksz=$(stat -f -c '%s' ${SCRATCH_MNT})
-agcount=$($XFS_INFO_PROG ${SCRATCH_MNT} | grep agcount= | sed -e 's/^.*agcount=\([0-9]*\),.*$/\1/g')
+agcount=$(_xfs_mount_agcount $SCRATCH_MNT)
+_xfs_force_bdev data $SCRATCH_MNT
 
 echo "+ make some files"
 _pwrite_byte 0x62 0 $((blksz * 64)) ${SCRATCH_MNT}/file0 >> $seqres.full
@@ -72,7 +72,7 @@ fi
 echo "+ repair fs"
 _disable_dmesg_check
 _repair_scratch_fs >> "$seqres.full" 2>&1
-_scratch_xfs_repair >> $seqres.full 2>&1
+_repair_scratch_fs >> $seqres.full 2>&1
 
 echo "+ mount image (2)"
 _scratch_mount