xfs: fix old fuzz test invocations of xfs_repair
[xfstests-dev.git] / tests / xfs / 101
index 57983a8fd7a790792b08bb520574992c392cefcf..6eb303ad5451bcde4f0a7a99d7d47b4d6665a9b4 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
@@ -66,18 +65,17 @@ __populate_check_xfs_dir "${inode}" leaf
 echo "+ corrupt dir"
 _scratch_xfs_db -x -c "inode ${inode}" -c "dblock ${leaf_lblk}" -c "stack" -c "blocktrash -x 32 -y $((blksz * 8)) -z ${FUZZ_ARGS}" >> $seqres.full
 
-echo "+ mount image"
+echo "+ mount image && modify dir"
 if _try_scratch_mount >> $seqres.full 2>&1; then
 
-       echo "+ modify dir"
        rm -rf "${SCRATCH_MNT}/blockdir/00000000" 2> /dev/null && _fail "modified corrupt directory"
        mkdir "${SCRATCH_MNT}/blockdir/xxxxxxxx" 2> /dev/null && _fail "add to corrupt directory"
        umount "${SCRATCH_MNT}"
 fi
 
 echo "+ repair fs"
-_scratch_xfs_repair >> $seqres.full 2>&1
-_scratch_xfs_repair >> $seqres.full 2>&1
+_repair_scratch_fs >> $seqres.full 2>&1
+_repair_scratch_fs >> $seqres.full 2>&1
 
 echo "+ mount image (2)"
 _scratch_mount