mirror of
https://github.com/ceph/ceph
synced 2024-12-23 11:54:11 +00:00
f2aef3e1da
Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
12 lines
184 B
Bash
Executable File
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
|