4 grep -q llog_test /proc/modules && return
5 # Module should have been placed with other lustre modules...
7 grep -q llog_test /proc/modules && return
8 # But maybe we're running from a developer tree...
9 insmod ../obdclass/llog_test.ko
10 grep -q llog_test /proc/modules && return
11 # This is for 2.4 kernels (deprecated!)
12 insmod ../obdclass/llog_test.o
13 grep -q llog_test /proc/modules && return
14 echo "Unable to load llog_test module!"
19 PATH=`dirname $0`:`dirname $0`/../utils:$PATH
22 MDS=`ls $LPROC/mds | grep -v num_refs | head -n 1`
23 [ -z "$MDS" ] && echo "no MDS available, skipping llog test" && exit 0
25 load_llog_test || exit 0
26 lctl modules > $TMP/ogdb-`hostname`
27 echo "NOW reload debugging syms.."
31 attach llog_test llt_name llt_uuid
35 # Using ignore_errors will allow lctl to cleanup even if the test fails.
42 rmmod llog_test || RC2=3
43 [ $RC -eq 0 -a "$RC2" ] && RC=$RC2