Give run-llog.sh script half a chance to work under 2.6 (currently excluded
from sanity.sh)
test_1() {
./chownmany 1000 $DIR/llog-%d $LCOUNT
sleep 5
+ $CHECKSTAT -u \#1000 $DIR/llog-* || return 4
}
run_test 1 "Do chowns"
fail ost
./chownmany 500 $DIR/llog-%d $HALFCOUNT $LCOUNT
sleep 5
+ $CHECKSTAT -u \#500 $DIR/llog-* || return 5
}
-#run_test 2 "Fail OST during chown"
+run_test 2 "Fail OST during chown"
test_3() {
./unlinkmany $DIR/llog-%d $LCOUNT
sleep 2
- $CHECKSTAT -t file $DIR/llog-* && return 1 || true
+ $CHECKSTAT -t file $DIR/llog-* && return 10 || true
}
run_test 3 "Remove testset"
MDS=`ls /proc/fs/lustre/mds | grep -v num_refs | head -n 1`
[ -z "$MDS" ] && echo "no MDS available, skipping llog test" && exit 0
-insmod ../obdclass/llog_test.o || exit 1
+case `uname -r` in
+2.4.*) insmod ../obdclass/llog_test.o || exit 1 ;;
+2.6.*) insmod ../obdclass/llog_test.ko || exit 1 ;;
+*) echo "unknown kernel version `uname -r`" && exit 99 ;;
+esac
lctl modules > $TMP/ogdb-`hostname`
echo "NOW reload debugging syms.."