xfs: Fix the situation that mount operation rejects corrupted XFS
[xfstests-dev.git] / tests / xfs / 105
index fe451344678dbb6716683c0d04cdf25baaed5e81..8c2cf3b63fc78d31c867d76432d4882be9a8d6c6 100755 (executable)
@@ -71,10 +71,9 @@ while true; do
        loff="$((loff + 1))"
 done
 
-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}"