2 PATH=`dirname $0`:`dirname $0`/../utils:$PATH
5 MDS=`ls /proc/fs/lustre/mdt | grep -v num_refs | head -n 1`
6 [ -z "$MDS" ] && echo "no MDS available, skipping llog test" && exit 0
9 2.4.*) modprobe llog_test || exit 1 ;;
10 2.6.*) modprobe llog_test || exit 1 ;;
11 *) echo "unknown kernel version `uname -r`" && exit 99 ;;
13 lctl modules > $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