Make test 41 fail if it cannot run mkfs successfully.
authorNathan Scott <nathans@sgi.com>
Tue, 18 Apr 2006 03:48:00 +0000 (03:48 +0000)
committerNathan Scott <nathans@sgi.com>
Tue, 18 Apr 2006 03:48:00 +0000 (03:48 +0000)
Merge of master-melb:xfs-cmds:25749a by kenmcd.

041

diff --git a/041 b/041
index 7375d23ed0318f29bb92448c9237cd22f7d89935..3eca05e1e778a165c796ffa08e6946b7b70c28f9 100755 (executable)
--- a/041
+++ b/041
@@ -37,7 +37,7 @@ _supported_os IRIX Linux
 
 _require_scratch
 _require_nobigloopfs
-
+umount $SCRATCH_DEV 2>/dev/null
 
 _fill()
 {
@@ -48,11 +48,12 @@ _fill()
 
 _do_die_on_error=message_only
 rm -f $seq.full
-#agsize=16
 agsize=32
 echo -n "Make $agsize megabyte filesystem on SCRATCH_DEV and mount... "
 _do "_scratch_mkfs_xfs -dsize=${agsize}m,agcount=1"
+[ $? -ne 0 ] && exit
 _do "_scratch_mount"
+[ $? -ne 0 ] && exit
 echo "done"
 
 # full allocation group -> partial; partial -> expand partial + new partial;