2 PATH=`dirname $0`:`dirname $0`/../utils:$PATH
5 MDS=`find /proc/fs/lustre/mds/* -type d | head -n1 | sed 's/.*\///'`
6 [ -z "$MDS" ] && echo "no MDS available, skipping llog test" && exit 0
8 insmod ../obdclass/llog_test.o || exit 1
9 lctl modules > $TMP/ogdb-`hostname`
11 # take care of UML developers
12 [ -f /r/$TMP/ogdb-`hostname` ] &&
13 cp -f $TMP/ogdb-`hostname` /r/$TMP/ogdb-`hostname`
14 echo "NOW reload debugging syms.."
19 attach llog_test llt_name llt_uuid
23 # Using ignore_errors will allow lctl to cleanup even if the test fails.
30 rmmod llog_test || RC2=3
31 [ $RC -eq 0 -a "$RC2" ] && RC=$RC2