Whamcloud - gitweb
* vibnal fixes
[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
9 config=$NAME.xml
10 mkconfig=$NAME.sh
11
12 if [ "$PORTALS" ]; then
13   portals_opt="--portals=$PORTALS"
14 fi
15
16 if [ "$LUSTRE" ]; then
17   lustre_opt="--lustre=$LUSTRE"
18 fi
19
20 if [ "$LDAPURL" ]; then
21     conf_opt="--ldapurl $LDAPURL --config $NAME"
22 else
23     if [ ! -f $config -o $mkconfig -nt $config ]; then
24         sh $mkconfig $config || exit 1
25     fi
26     conf_opt="$config"
27 fi    
28
29 [ "$NODE" ] && node_opt="--node $NODE"
30
31 ${LCONF} $NOMOD $portals_opt $lustre_opt $node_opt $@ $conf_opt || exit 2
32
33 if [ "$MOUNT2" ]; then
34        $LLMOUNT -v `hostname`:/mds1/client $MOUNT2 || exit 3
35 fi
36