touch "${TESTFILE}.${x}"
done
inode="$(stat -c '%i' "${TESTFILE}.1")"
-agcount="$($XFS_INFO_PROG "${SCRATCH_MNT}" | grep agcount= | sed -e 's/^.*agcount=\([0-9]*\),.*$/\1/g')"
+agcount="$(_xfs_mount_agcount $SCRATCH_MNT)"
umount "${SCRATCH_MNT}"
echo "+ check fs"
echo "+ modify files (2)"
broken=0
+# Make sure that we still have the scratch directory after repairing our
+# corrupted filesystem, because repair could have nuked it.
+mkdir -p "${TESTDIR}"
for x in `seq 65 70`; do
touch "${TESTFILE}.${x}" || broken=1
done