Whamcloud - gitweb
Branch b1_4_mountconf
[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 [ "$DEBUG" ] && debug_opt="--ptldebug=$DEBUG"
30 [ "$PTLDEBUG" ] && debug_opt="--ptldebug=$PTLDEBUG"
31
32 echo FIXME use the utils/cluster_scripts/cluster_config.sh to parse config csv files.
33
34 exit 1
35
36 #${LCONF} $NOMOD $portals_opt $lustre_opt $debug_opt $node_opt ${REFORMAT:---reformat} $@ $conf_opt  || {
37     # maybe acceptor error, dump tcp port usage
38 #    netstat -tpn
39 #    exit 2
40 #}
41
42 #if [ "$MOUNT2" ]; then
43 #       $LLMOUNT -v -o user_xattr,acl `hostname`:/mds1/client $MOUNT2 || exit 3
44 #fi