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
+2 -2
View File
@@ -120,11 +120,11 @@ _check()
if [ $expect -eq 0 ]
then
_echo " *** xfs_check ($LOG/check_clean.out)"
xfs_check $TEST_DEV &> $LOG/check_clean.out || fail=1
_xfs_check $TEST_DEV &> $LOG/check_clean.out || fail=1
[ -s /tmp/xfs_check_clean.out ] && fail=1
else
_echo " *** xfs_check ($LOG/check_dirty.out)"
xfs_check $TEST_DEV &> $LOG/check_dirty.out || fail=1
_xfs_check $TEST_DEV &> $LOG/check_dirty.out || fail=1
fi
if [ $fail -eq 0 -a $expect -eq 0 ]