Whamcloud - gitweb
- 2.6 fixes landed
[fs/lustre-release.git] / lustre / tests / llrmount.sh
index 9bf287e..550e1d1 100755 (executable)
@@ -10,8 +10,19 @@ if [ "$PORTALS" ]; then
   portals_opt="--portals=$PORTALS"
 fi
 
-if [ ! -f $config -o $mkconfig -nt $config ]; then
-   sh $mkconfig $config || exit 1
+if [ "$LUSTRE" ]; then
+  lustre_opt="--lustre=$LUSTRE"
 fi
 
-${LCONF} $portals_opt --gdb $config || exit 2
+if [ "$LDAPURL" ]; then
+    conf_opt="--ldapurl $LDAPURL --config $NAME"
+else
+    if [ ! -f $config -o $mkconfig -nt $config ]; then
+       sh $mkconfig $config || exit 1
+    fi
+    conf_opt="$config"
+fi    
+
+[ "$NODE" ] && node_opt="--node $NODE"
+
+${LCONF} $NOMOD $portals_opt $lustre_opt $node_opt $@ $conf_opt || exit 2