Whamcloud - gitweb
land b_md onto HEAD:
[fs/lustre-release.git] / lustre / tests / rundbench
index 0f6b66d..cbf6a65 100755 (executable)
@@ -1,6 +1,10 @@
 #!/bin/sh
 
-[ -e /proc/sys/portals/debug ] && echo 0 > /proc/sys/portals/debug 
+#[ -e /proc/sys/portals/debug ] && echo 0 > /proc/sys/portals/debug 
+TGT=/mnt/lustre/client.txt
+SRC=/usr/lib/dbench/client.txt
+[ ! -e $TGT -a -e $SRC ] && echo "copying $SRC to $TGT" && cp $SRC $TGT
+SRC=/usr/lib/dbench/client_plain.txt
+[ ! -e $TGT -a -e $SRC ] && echo "copying $SRC to $TGT" && cp $SRC $TGT
 cd /mnt/lustre
-cp /usr/src/obd/demos/dbench/client.txt .
-/usr/src/obd/demos/dbench/dbench $1
+dbench -c client.txt $@