check for mount and mkfs failures and exit if failure occurs, rather than fill qa machines root fs.

Merge of master-melb:xfs-cmds:27324a by kenmcd.
This commit is contained in:
David Disseldorp
2006-10-31 16:08:47 +00:00
parent 11cced490a
commit be8b8f0c7f
2 changed files with 6 additions and 6 deletions
+3 -4
View File
@@ -50,10 +50,9 @@ _do_die_on_error=message_only
rm -f $seq.full
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
_scratch_mkfs_xfs -dsize=${agsize}m,agcount=1 2>&1 >/dev/null || _fail "mkfs failed"
_scratch_mount || _fail "mount failed"
echo "done"
# full allocation group -> partial; partial -> expand partial + new partial;