Check filesystem after log replay and abort test if errors found

Merge of master-melb:xfs-cmds:29730a by kenmcd.

  Check filesystem after log replay and abort test if errors found
This commit is contained in:
Lachlan McIlroy
2007-09-20 06:13:47 +00:00
parent 2659a01a6b
commit 979ed6f333
6 changed files with 42 additions and 0 deletions
+7
View File
@@ -57,6 +57,13 @@ src/godown $SCRATCH_MNT
umount $SCRATCH_MNT
_scratch_mount
umount $SCRATCH_MNT
if [ ! _check_scratch_fs ]
then
echo error detected in filesystem
exit
fi
_scratch_mount
# check file size and contents
i=1;
+7
View File
@@ -63,6 +63,13 @@ src/godown $SCRATCH_MNT
umount $SCRATCH_MNT
_scratch_mount
umount $SCRATCH_MNT
if [ ! _check_scratch_fs ]
then
echo error detected in filesystem
exit
fi
_scratch_mount
# check file size and contents
i=1;
+7
View File
@@ -63,6 +63,13 @@ src/godown $SCRATCH_MNT
umount $SCRATCH_MNT
_scratch_mount
umount $SCRATCH_MNT
if [ ! _check_scratch_fs ]
then
echo error detected in filesystem
exit
fi
_scratch_mount
# check file size and contents
i=1;
+7
View File
@@ -63,6 +63,13 @@ src/godown $SCRATCH_MNT
umount $SCRATCH_MNT
_scratch_mount
umount $SCRATCH_MNT
if [ ! _check_scratch_fs ]
then
echo error detected in filesystem
exit
fi
_scratch_mount
# check file size and contents
i=1;
+7
View File
@@ -85,6 +85,13 @@ done
src/godown $SCRATCH_MNT
umount $SCRATCH_MNT
_scratch_mount
umount $SCRATCH_MNT
if [ ! _check_scratch_fs ]
then
echo error detected in filesystem
exit
fi
_scratch_mount
_check_files
status=0
+7
View File
@@ -86,6 +86,13 @@ sync
src/godown $SCRATCH_MNT
umount $SCRATCH_MNT
_scratch_mount
umount $SCRATCH_MNT
if [ ! _check_scratch_fs ]
then
echo error detected in filesystem
exit
fi
_scratch_mount
_check_files
status=0