ceph/qa/workunits/bonnie.sh

12 lines
184 B
Bash
Raw Normal View History

2009-12-08 00:48:35 +00:00
#!/bin/bash
2010-04-14 17:08:42 +00:00
set -e
2009-12-08 00:48:35 +00:00
bonnie_bin=`which bonnie++`
[ $? -eq 1 ] && bonnie_bin=/usr/sbin/bonnie++
uid_flags=""
[ "`id -u`" == "0" ] && uid_flags="-u root"
$bonnie_bin $uid_flags -n 100