Whamcloud - gitweb
landing smfs.
[fs/lustre-release.git] / lustre / tests / llmount.sh
1 #!/bin/sh
2 # suggested boilerplate for test script
3
4 export PATH=`dirname $0`/../utils:$PATH
5
6 LCONF=${LCONF:-lconf}
7 NAME=${NAME:-local}
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     sh $mkconfig $config || exit 1
24     conf_opt="$config"
25 fi    
26
27 [ "$NODE" ] && node_opt="--node $NODE"
28
29 ${LCONF} $NOMOD $portals_opt $lustre_opt $node_opt ${REFORMAT:---reformat} $@ \
30         $conf_opt  || exit 2