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 test "x$(uname -r | grep -o "2.6")" = "x2.6" && MODEXT=ko || MODEXT=o
10 insmod ../obdclass/llog_test.$MODEXT || exit 1
11 lctl modules > $TMP/ogdb-`hostname`
13 # take care of UML developers
14 [ -f /r/$TMP/ogdb-`hostname` ] &&
15 cp -f $TMP/ogdb-`hostname` /r/$TMP/ogdb-`hostname`
16 echo "NOW reload debugging syms.."
21 attach llog_test llt_name llt_uuid
25 # Using ignore_errors will allow lctl to cleanup even if the test fails.
32 rmmod llog_test || RC2=3
33 [ $RC -eq 0 -a "$RC2" ] && RC=$RC2