Whamcloud - gitweb
land 0.5.20.3 b_devel onto HEAD (b_devel will remain)
[fs/lustre-release.git] / lustre / tests / llmount.sh
1 #!/bin/sh
2 # suggested boilerplate for test script
3
4 LCONF=${LCONF:-../utils/lconf}
5 NAME=${NAME:-local}
6
7 config=$NAME.xml
8 mkconfig=$NAME.sh
9
10 if [ "$PORTALS" ]; then
11   portals_opt="--portals=$PORTALS"
12 fi
13
14 if [ "$LUSTRE" ]; then
15   lustre_opt="--lustre=$LUSTRE"
16 fi
17
18 if [ "$1" = "-v" ]; then
19   verbose="-v"
20 fi
21
22 [ -x $LCONF ] || chmod a+rx $LCONF
23
24 sh $mkconfig $config || exit 1
25
26 ${LCONF} $portals_opt $lustre_opt --reformat --gdb $verbose $config  || exit 2