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 rm -f $seq.full
agsize=32 agsize=32
echo -n "Make $agsize megabyte filesystem on SCRATCH_DEV and mount... " echo -n "Make $agsize megabyte filesystem on SCRATCH_DEV and mount... "
_do "_scratch_mkfs_xfs -dsize=${agsize}m,agcount=1" _scratch_mkfs_xfs -dsize=${agsize}m,agcount=1 2>&1 >/dev/null || _fail "mkfs failed"
[ $? -ne 0 ] && exit _scratch_mount || _fail "mount failed"
_do "_scratch_mount"
[ $? -ne 0 ] && exit
echo "done" echo "done"
# full allocation group -> partial; partial -> expand partial + new partial; # full allocation group -> partial; partial -> expand partial + new partial;
+3 -2
View File
@@ -76,8 +76,9 @@ rm -f $seq.full
_do_die_on_error=message_only _do_die_on_error=message_only
echo -n "Make a 48 megabyte filesystem on SCRATCH_DEV and mount... " echo -n "Make a 48 megabyte filesystem on SCRATCH_DEV and mount... "
_do "_scratch_mkfs_xfs -dsize=48m,agcount=3" _scratch_mkfs_xfs -dsize=48m,agcount=3 2>&1 >/dev/null || _fail "mkfs failed"
_do "_scratch_mount" _scratch_mount || _fail "mount failed"
echo "done" echo "done"
echo -n "Reserve 16 1Mb unfragmented regions... " echo -n "Reserve 16 1Mb unfragmented regions... "