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 -2
View File
@@ -76,8 +76,9 @@ rm -f $seq.full
_do_die_on_error=message_only
echo -n "Make a 48 megabyte filesystem on SCRATCH_DEV and mount... "
_do "_scratch_mkfs_xfs -dsize=48m,agcount=3"
_do "_scratch_mount"
_scratch_mkfs_xfs -dsize=48m,agcount=3 2>&1 >/dev/null || _fail "mkfs failed"
_scratch_mount || _fail "mount failed"
echo "done"
echo -n "Reserve 16 1Mb unfragmented regions... "