3 LCONF=${LCONF:-../utils/lconf}
10 if [ "$PORTALS" ]; then
11 portals_opt="--portals=$PORTALS"
14 if [ "$LUSTRE" ]; then
15 lustre_opt="--lustre=$LUSTRE"
18 if [ ! -f $config ]; then
19 sh $mkconfig $config || exit 1
23 ${LCONF} $portals_opt $lustre_opt --cleanup --dump $TMP/debug $config
25 BUSY=`dmesg | grep -i destruct`
28 mv $TMP/debug $TMP/debug-busy.`date +%s`
31 LEAK_LUSTRE=`dmesg | tail -20 | grep -v "leaked: 0" | grep leaked`
32 LEAK_PORTALS=`dmesg | tail -20 | grep "Portals memory leaked"`
33 if [ "$LEAK_LUSTRE" -o "$LEAK_PORTALS" ]; then
34 echo "$LEAK_LUSTRE" 1>&2
35 echo "$LEAK_PORTALS" 1>&2
36 mv $TMP/debug $TMP/debug-leak.`date +%s`