tidy mkfs parameterisation, -f option pulled into common.rc.

This commit is contained in:
fsgqa
2002-05-06 07:44:22 +00:00
parent fe932fdad3
commit f29425d6f7
29 changed files with 94 additions and 108 deletions
+3 -9
View File
@@ -86,11 +86,9 @@ mount()
mkfs_xfs()
{
/sbin/mkfs.xfs $* $MKFS_OPTIONS
/sbin/mkfs.xfs -f $* $MKFS_OPTIONS
}
#
_get_pids_by_name()
{
if [ $# -ne 1 ]
@@ -345,7 +343,6 @@ _fail()
#
_require_scratch()
{
if [ -z "$SCRATCH_DEV" -o "`_is_block_dev $SCRATCH_DEV`" = "" ]
then
_notrun "this test requires a valid \$SCRATCH_DEV"
@@ -365,18 +362,13 @@ _require_scratch()
echo "\$SCRATCH_DEV is mounted but not on \$SCRATCH_MNT - aborting"
exit 1
fi
# and then unmount it
if ! umount $SCRATCH_DEV
then
echo "failed to unmount $SCRATCH_DEV"
exit 1
fi
fi
# should be ok now
}
# this test needs a logdev
@@ -387,6 +379,8 @@ _require_logdev()
then
_notrun "This test requires a valid \$SCRATCH_LOGDEV"
fi
# ensure its not mounted
umount $SCRATCH_LOGDEV 2>/dev/null
}
# this test requires loopback device support