4 grep -q llog_test /proc/modules && return
5 # Module should have been placed with other lustre modules...
6 modprobe llog_test 2>&1 | grep -v "llog_test not found"
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 MGS=`lctl dl | awk '/mgs/ { print $4 }'`
23 [ -z "$MGS" ] && echo "no MGS 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