| To: | xfs-oss <xfs@xxxxxxxxxxx> |
|---|---|
| Subject: | [PATCH] xfstests: exit non-0 if fs check fails |
| From: | Eric Sandeen <sandeen@xxxxxxxxxx> |
| Date: | Wed, 31 Mar 2010 18:38:23 -0500 |
| User-agent: | Thunderbird 2.0.0.24 (Macintosh/20100228) |
Right now if any of the _check_scratch_fs tests etc fail,
the check script exits but with 0 status.
This change will cause the status to be non-0 so we can detect
the error.
Signed-off-by: Eric Sandeen <sandeen@xxxxxxxxxx>
---
(aside - we could make it 2 instead of 1, so that a calling script
could fsck and continue ... thoughts?)
diff --git a/common.rc b/common.rc
index 2103a77..301ae6a 100644
--- a/common.rc
+++ b/common.rc
@@ -959,6 +959,7 @@ _check_generic_filesystem()
echo "*** mount output ***"
>>$here/$seq.full
_mount
>>$here/$seq.full
echo "*** end mount output"
>>$here/$seq.full
+ status=1
elif [ "$type" = "$FSTYP" ]
then
# was mounted ...
@@ -1054,6 +1055,7 @@ _check_xfs_filesystem()
echo "*** mount output ***"
>>$here/$seq.full
_mount
>>$here/$seq.full
echo "*** end mount output"
>>$here/$seq.full
+ status=1
elif [ "$type" = "xfs" ]
then
_mount_or_remount_rw "$extra_mount_options" $device $mountpoint
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | Re: [PATCH] xfstests: made test 215 backwards compatible with older version of bash., Dave Chinner |
|---|---|
| Next by Date: | Re: [PATCH] xfstests: made test 215 backwards compatible with older version of bash., Eric Sandeen |
| Previous by Thread: | [PATCH] xfstests: made test 215 backwards compatible with older version of bash., Akshay Lal |
| Next by Thread: | Re: [PATCH] xfstests: exit non-0 if fs check fails, Dave Chinner |
| Indexes: | [Date] [Thread] [Top] [All Lists] |