ceph/qa/workunits/suites/bonnie.sh

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