xfstests: Remove dependence of xfs_check script

Replace the usage of the script xfs_check and add the relevant code to
xfstests.

This is in preparation of the planned deprecation of xfs_check.

Signed-off-by: Chandra Seetharaman <sekharan@us.ibm.com>
Reviewed-by: Eric Sandeen <sandeen@redhat.com>
Signed-off-by: Rich Johnston <rjohnston@sgi.com>
This commit is contained in:
Chandra Seetharaman
2013-04-18 17:44:02 +00:00
committed by Rich Johnston
parent 2519a97d10
commit 187bccd310
5 changed files with 34 additions and 8 deletions
+1 -1
View File
@@ -70,7 +70,7 @@ _print_logstate
# curious if FS consistent at start
if false; then
if $XFS_CHECK_PROG $SCRATCH_DEV; then
if _xfs_check $SCRATCH_DEV; then
echo "*** checked ok ***"
fi
fi
Regular → Executable
+1 -1
View File
@@ -113,7 +113,7 @@ done
_scratch_unmount
# Can xfs_repair and xfs_check cope with this monster?
_scratch_xfs_repair >> $seqres.full 2>&1 || _fail "xfs_repair failed"
xfs_check $SCRATCH_DEV >> $seqres.full 2>&1 || _fail "xfs_check failed"
_xfs_check $SCRATCH_DEV >> $seqres.full 2>&1 || _fail "xfs_check failed"
# Yes they can! Now...
# Can xfs_metadump cope with this monster?