X-Git-Url: https://git.whamcloud.com/?a=blobdiff_plain;f=lustre%2Ftests%2Fllrmount.sh;h=a9de5e41405298729dc2de597a2b6830ae38e0cc;hb=a8899581aa47d6aa12069b79513a6abd8d242885;hp=4376a58cd81bc32d98591a1eff1d194080718c57;hpb=837566721b87ec721a8c0d065241491d121cfbc5;p=fs%2Flustre-release.git diff --git a/lustre/tests/llrmount.sh b/lustre/tests/llrmount.sh index 4376a58..a9de5e4 100755 --- a/lustre/tests/llrmount.sh +++ b/lustre/tests/llrmount.sh @@ -1,10 +1,44 @@ #!/bin/sh -SRCDIR="`dirname $0`/" -. $SRCDIR/common.sh +export PATH=`dirname $0`/../utils:$PATH -export DEBUG_WAIT=yes -. $SRCDIR/llrsetup.sh $SRCDIR/net-local.cfg $SRCDIR/client-mount.cfg $SRCDIR/mds.cfg $SRCDIR/obdext2.cfg $SRCDIR/ldlm.cfg || exit 2 +LCONF=${LCONF:-lconf} +NAME=${NAME:-local} +LLMOUNT=${LLMOUNT:-llmount} +SECURITY=${SECURITY:-"null"} + +config=$NAME.xml +mkconfig=$NAME.sh + +. krb5_env.sh + +start_krb5_kdc || exit 1 +start_lsvcgssd || exit 2 +start_lgssd || exit 3 + +if [ "$PORTALS" ]; then + portals_opt="--portals=$PORTALS" +fi + +if [ "$LUSTRE" ]; then + lustre_opt="--lustre=$LUSTRE" +fi + +if [ "$LDAPURL" ]; then + conf_opt="--ldapurl $LDAPURL --config $NAME" +else + if [ ! -f $config -o $mkconfig -nt $config ]; then + sh $mkconfig $config || exit 4 + fi + conf_opt="$config" +fi + +[ "$NODE" ] && node_opt="--node $NODE" + +${LCONF} $NOMOD --mds_sec $SECURITY $portals_opt $lustre_opt $node_opt \ + $@ $conf_opt || exit 5 + +if [ "$MOUNT2" ]; then + $LLMOUNT -v -o mds_sec=$SECURITY `hostname`:/mds1/client $MOUNT2 || exit 6 +fi -debug_client_on -#debug_client_off