ceph/qa/workunits/bonnie.sh
2010-04-14 12:40:58 -07:00

12 lines
184 B
Bash
Executable File

#!/bin/bash
set -e
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