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