Whamcloud - gitweb
b=2255
[fs/lustre-release.git] / lustre / tests / run-llog.sh
1 #!/bin/bash
2 PATH=`dirname $0`:`dirname $0`/../utils:$PATH
3 TMP=${TMP:-/tmp}
4 insmod ../obdclass/llog_test.o || exit 1
5 lctl modules > $TMP/ogdb-`hostname`
6 echo "NOW reload debugging syms.."
7
8 RC=0
9 lctl <<EOT || RC=2
10 newdev
11 attach llog_test llt_name llt_uuid
12 setup mds1
13 EOT
14
15 # Using ignore_errors will allow lctl to cleanup even if the test fails.
16 lctl <<EOC
17 cfg_device llt_name
18 ignore_errors
19 cleanup
20 detach
21 EOC
22 rmmod llog_test || RC2=3
23 [ $RC -eq 0 -a "$RC2" ] && RC=$RC2
24
25 exit $RC