3 export PATH=`dirname $0`/../utils:$PATH
12 if [ "$PORTALS" ]; then
13 portals_opt="--portals=$PORTALS"
16 if [ "$LUSTRE" ]; then
17 lustre_opt="--lustre=$LUSTRE"
20 if [ "$LDAPURL" ]; then
21 conf_opt="--ldapurl $LDAPURL --config $NAME"
23 if [ ! -f $config ]; then
24 sh $mkconfig $config || exit 1
29 [ "$NODE" ] && node_opt="--node $NODE"
32 ${LCONF} $NOMOD $portals_opt $lustre_opt $node_opt --cleanup $@ \
33 --dump $TMP/debug $conf_opt
36 BUSY=`dmesg | grep -i destruct`
39 mv $TMP/debug $TMP/debug-busy.`date +%s`
42 LEAK_LUSTRE=`dmesg | tail -40 | grep "obd mem.*leaked"`
43 LEAK_PORTALS=`dmesg | tail -20 | grep "Portals memory leaked"`
44 if [ "$LEAK_LUSTRE" -o "$LEAK_PORTALS" ]; then
45 echo "$LEAK_LUSTRE" 1>&2
46 echo "$LEAK_PORTALS" 1>&2
47 mv $TMP/debug $TMP/debug-leak.`date +%s`