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