|
|
| File: [Development] / xfs-cmds / xfstests / common.bonnie (download)
Revision 1.4, Wed May 14 05:25:31 2003 UTC (14 years, 5 months ago) by fsgqa
Several QA test updates to fix failures on v2 logs and redhat 9. Fix a typo in yesterdays update to this shell snippet. |
##/bin/sh
run_bonnie()
{
# dir, no hostname, quiet, fast (no per-char), ram (no sz checks)
tmp=/var/tmp
mkdir ./bonnie || exit 1
defaults="-d ./bonnie -q -f -r 0"
defaults="$defaults -u "`id -u`" -g "`id -g`
bonnie++ -m '' $defaults $@ >$tmp/bonnie.stdout 2>$tmp/bonnie.stderr
status=$?
rm -fr ./bonnie
[ $status -ne 0 ] && exit 1
filter_stdout < $tmp/bonnie.stdout
filter_stderr < $tmp/bonnie.stderr 1>&2
rm -f $tmp/bonnie.stdout $tmp/bonnie.stderr
exit 0
}