Added error message if bonnie++ is not installed.
##/bin/sh
+#check bonnie is installed
+if [ "`whereis bonnie++`" == "bonnie++:"]; then
+ echo $0 error bonnie not installed.
+ exit
+fi
+
run_bonnie()
{
# dir, no hostname, quiet, fast (no per-char), ram (no sz checks)
##/bin/sh
+#check dbench is installed
+if [ "`whereis dbench`" == "dbench:"]; then
+ echo $0 error dbench not installed.
+ exit
+fi
+
_run_dbench()
{
mkdir ./dbench || exit 1
##/bin/sh
-
#
# Copyright (c) 2000-2003 Silicon Graphics, Inc. All Rights Reserved.
#
nfs*)
# do nothing for nfs
;;
- udf|*)
+ udf*)
$MKFS_PROG -t $FSTYP $MKFS_OPTIONS $* > /dev/null
;;
+ ext2)
+ mkfs.ext2 $MKFS_OPTIONS $* $SCRATCH_DEV > /dev/null
+ ;;
+ ext3)
+ mkfs.ext3 $MKFS_OPTIONS $* $SCRATCH_DEV > /dev/null
+ ;;
+ reiserfs)
+ mkfs.reiserfs $MKFS_OPTIONS $* $SCRATCH_DEV > /dev/null
+ ;;
esac
}
_notrun "this test requires a valid \$SCRATCH_DEV"
fi
;;
- nfs*)
+ nfs*|ext2|ext3|reiserfs)
echo $SCRATCH_DEV | grep -q ":" > /dev/null 2>&1
if [ ! -z "$SCRATCH_DEV" -a ! -b "$SCRATCH_DEV" -a "$?" != "0" ]
then