X-Git-Url: https://git.whamcloud.com/?a=blobdiff_plain;ds=sidebyside;f=lustre%2Ftests%2Fllecho.sh;h=a345f4f78d6a396072d56b013163d12a5fc4f404;hb=28f40e5d5bdf6fbecf241d66fc8eae0d858fefb3;hp=a47c088276b7ee2bc4965b8becc36d255a40aff4;hpb=7312616768bfed768ecc00ba20322c37568138d0;p=fs%2Flustre-release.git diff --git a/lustre/tests/llecho.sh b/lustre/tests/llecho.sh index a47c088..a345f4f 100644 --- a/lustre/tests/llecho.sh +++ b/lustre/tests/llecho.sh @@ -1,49 +1,23 @@ #!/bin/sh -config=echo.xml -LCONF=${LCONF:-../utils/lconf} -LMC=${LMC:-../utils/lmc} - -SERVER=localhost -CLIENT=localhost - -# FIXME: make LMC not require MDS for obdecho LOV -MDSDEV=$TMP/mds1 -MDSSIZE=10000 - -STRIPE_BYTES=65536 -STRIPES_PER_OBJ=2 # 0 means stripe over all OSTs - -LOV=0 -while [ "$1" ]; do - case $1 in - --lov) LOV="1" ;; - *) OPTS="$OPTS $1" ;; - esac - shift -done - -# create nodes -$LMC -o $config --node $SERVER --net $SERVER tcp || exit 1 - -if (($LOV)); then - $LMC -m $config --node $SERVER --mds mds1 $MDSDEV $MDSSIZE || exit 10 - $LMC -m $config --lov lov1 mds1 $STRIPE_BYTES $STRIPES_PER_OBJ 0 || exit 11 - $LMC -m $config --node $SERVER --lov lov1 --obdtype=obdecho --ost || exit 12 - $LMC -m $config --node $SERVER --lov lov1 --obdtype=obdecho --ost || exit 13 - - $LMC -m $config --node $CLIENT --echo_client lov1 || exit 3 -else - $LMC -m $config --node $SERVER --obdtype=obdecho --ost || exit 2 - # force the osc to be configured (this is normally done when it is mounted) - $LMC -m $config --node $CLIENT --osc OSC_$SERVER || exit 3 - $LMC -m $config --node $CLIENT --echo_client OSC_${SERVER} || exit 3 +PATH=`dirname $0`/../utils:$PATH + +LCONF=${LCONF:-lconf} +NAME=${NAME:-echo} + +config=$NAME.xml +mkconfig=$NAME.sh + +if [ "$LUSTRE" ]; then + lustre_opt="--lustre=$LUSTRE" fi -$LCONF --gdb $OPTS $config || exit 4 +[ -f $config ] || sh -x $mkconfig $config || exit 1 + +$LCONF $lustre_opt --reformat $@ $OPTS $config || exit 4 cat <