X-Git-Url: https://git.whamcloud.com/?a=blobdiff_plain;f=lustre%2Ftests%2Fllrmount.sh;h=1877666195c2a05959f02cbb1ea1af8160debb81;hb=e74a5707a7977045fc7c4aa3765539c5151340bf;hp=4dbd5466fe6ca9657a9329a85a609253700e097d;hpb=f45f09d9077c660925fb422f101d2025ee3f9f11;p=fs%2Flustre-release.git diff --git a/lustre/tests/llrmount.sh b/lustre/tests/llrmount.sh index 4dbd546..1877666 100755 --- a/lustre/tests/llrmount.sh +++ b/lustre/tests/llrmount.sh @@ -1,44 +1,28 @@ #!/bin/sh -SRCDIR="`dirname $0`" -. $SRCDIR/common.sh +LCONF=${LCONF:-../utils/lconf} +NAME=${NAME:-local} -NETWORK=tcp -LOCALHOST=localhost -SERVER=localhost -PORT=1234 +config=$NAME.xml +mkconfig=$NAME.sh -setup_portals -setup_lustre +if [ "$PORTALS" ]; then + portals_opt="--portals=$PORTALS" +fi -old_fs ext2 /tmp/ost 80000 -OST=$LOOPDEV -MDSFS=ext2 -old_fs ${MDSFS} /tmp/mds 10000 -MDS=$LOOPDEV +if [ "$LUSTRE" ]; then + lustre_opt="--lustre=$LUSTRE" +fi -echo 0xffffffff > /proc/sys/portals/debug +if [ "$LDAPURL" ]; then + conf_opt="--ldapurl $LDAPURL --config $NAME" +else + if [ ! -f $config -o $mkconfig -nt $config ]; then + sh $mkconfig $config || exit 1 + fi + conf_opt="$config" +fi -$OBDCTL <