From 49335f8d80cf4b1797b5c20cd242512e41af43c3 Mon Sep 17 00:00:00 2001
From: adilger <adilger>
Date: Wed, 12 Sep 2007 18:36:37 +0000
Subject: [PATCH] Branch b1_6 Allow dbench to find client.txt in
 /usr/share/dbench. b=12467 i=nathan i=adilger (original patch)

---
 lustre/tests/rundbench | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/lustre/tests/rundbench b/lustre/tests/rundbench
index 9c5371b525..e2fc0bf321 100755
--- a/lustre/tests/rundbench
+++ b/lustre/tests/rundbench
@@ -4,6 +4,8 @@ DIR=${DIR:-$MOUNT/`hostname`}
 #[ -e /proc/sys/lnet/debug ] && echo 0 > /proc/sys/lnet/debug 
 mkdir -p $DIR
 TGT=$DIR/client.txt
+SRC=${SRC:-/usr/share/dbench/client.txt}
+[ ! -s $TGT -a -s $SRC ] && echo "copying $SRC to $TGT" && cp $SRC $TGT
 SRC=${SRC:-/usr/lib/dbench/client.txt}
 [ ! -s $TGT -a -s $SRC ] && echo "copying $SRC to $TGT" && cp $SRC $TGT
 SRC=/usr/lib/dbench/client_plain.txt
-- 
GitLab