Whamcloud - gitweb
adjust krb5 related scripts, add krb5 support in replay-ost-single,
[fs/lustre-release.git] / lustre / tests / llrmount.sh
1 #!/bin/sh
2
3 export PATH=`dirname $0`/../utils:$PATH
4
5 LCONF=${LCONF:-lconf}
6 NAME=${NAME:-local}
7 LLMOUNT=${LLMOUNT:-llmount}
8 SECURITY=${SECURITY:-"null"}
9
10 config=$NAME.xml
11 mkconfig=$NAME.sh
12
13 . krb5_env.sh
14
15 start_krb5_kdc || exit 1
16 start_lsvcgssd || exit 2
17 start_lgssd || exit 3
18
19 if [ "$PORTALS" ]; then
20   portals_opt="--portals=$PORTALS"
21 fi
22
23 if [ "$LUSTRE" ]; then
24   lustre_opt="--lustre=$LUSTRE"
25 fi
26
27 if [ "$LDAPURL" ]; then
28     conf_opt="--ldapurl $LDAPURL --config $NAME"
29 else
30     if [ ! -f $config -o $mkconfig -nt $config ]; then
31         sh $mkconfig $config || exit 4
32     fi
33     conf_opt="$config"
34 fi    
35
36 [ "$NODE" ] && node_opt="--node $NODE"
37
38 ${LCONF} $NOMOD --sec $SECURITY $portals_opt $lustre_opt $node_opt \
39          $@ $conf_opt  || exit 5
40
41 if [ "$MOUNT2" ]; then
42        $LLMOUNT -v -o sec=$SECURITY `hostname`:/mds1/client $MOUNT2 || exit 6
43 fi
44