. ./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
_scratch_mount
blksz=$(stat -f -c '%s' ${SCRATCH_MNT})
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
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