Whamcloud - gitweb
Added support to specify the lustre obj dir.
[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 [ -x $LCONF ] || chmod a+rx $LCONF
19
20 sh $mkconfig $config || exit 1
21
22 ${LCONF} $portals_opt $lustre_opt --reformat --gdb $config || exit 2