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