Whamcloud - gitweb
b=3983
[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
8 config=$NAME.xml
9 mkconfig=$NAME.sh
10
11 if [ "$PORTALS" ]; then
12   portals_opt="--portals=$PORTALS"
13 fi
14
15 if [ "$LUSTRE" ]; then
16   lustre_opt="--lustre=$LUSTRE"
17 fi
18
19 if [ "$LDAPURL" ]; then
20     conf_opt="--ldapurl $LDAPURL --config $NAME"
21 else
22     if [ ! -f $config -o $mkconfig -nt $config ]; then
23         sh $mkconfig $config || exit 1
24     fi
25     conf_opt="$config"
26 fi    
27
28 [ "$NODE" ] && node_opt="--node $NODE"
29
30 ${LCONF} $NOMOD $portals_opt $lustre_opt $node_opt $@ $conf_opt || exit 2