Whamcloud - gitweb
drop truncate capa after ll_truncate.
[fs/lustre-release.git] / lustre / tests / llecho.sh
index f6cbad6..a30a6b6 100644 (file)
@@ -1,24 +1,23 @@
 #!/bin/sh
 
-config=echo.xml
-LCONF=${LCONF:-../utils/lconf}
-LMC=${LMC:-../utils/lmc}
+PATH=`dirname $0`/../utils:$PATH
 
-SERVER=localhost
-CLIENT=localhost
+LCONF=${LCONF:-lconf}
+NAME=${NAME:-echo}
 
-# create nodes
-$LMC -o $config --node $SERVER --net $SERVER tcp || exit 1
-$LMC -m $config --node $SERVER --obdtype=obdecho --ost || exit 2
+config=$NAME.xml
+mkconfig=$NAME.sh
 
-# force the osc to be configured (this is normally done when it is mounted)
-$LMC -m $config --node $CLIENT --osc OSC_$SERVER || exit 3
+if [ "$LUSTRE" ]; then
+  lustre_opt="--lustre=$LUSTRE"
+fi
 
-$LCONF --gdb $config || exit 4
+sh -x $mkconfig $config || exit 1
+
+$LCONF $lustre_opt --reformat $@ $OPTS $config || exit 4
 
 cat <<EOF
 
 run getattr tests as:
-../utils/lctl --device \'\$OSC_$SERVER\' test_getattr 1000000
+`dirname $0`../utils/lctl --device '\$ECHO_$SERVER' test_getattr 1000000
 EOF
-