Whamcloud - gitweb
use modprobe instead insmod if modules are loaded already
authorhuanghua <huanghua>
Thu, 28 Sep 2006 11:00:25 +0000 (11:00 +0000)
committerhuanghua <huanghua>
Thu, 28 Sep 2006 11:00:25 +0000 (11:00 +0000)
lustre/tests/run-llog.sh

index 204eff5..15f168e 100644 (file)
@@ -6,8 +6,8 @@ MDS=`ls /proc/fs/lustre/mdt | grep -v num_refs | head -n 1`
 [ -z "$MDS" ] && echo "no MDS available, skipping llog test" && exit 0
 
 case `uname -r` in
-2.4.*) insmod ../obdclass/llog_test.o || exit 1 ;;
-2.6.*) insmod ../obdclass/llog_test.ko || exit 1 ;;
+2.4.*) modprobe llog_test || exit 1 ;;
+2.6.*) modprobe llog_test || exit 1 ;;
 *) echo "unknown kernel version `uname -r`" && exit 99 ;;
 esac
 lctl modules > $TMP/ogdb-`hostname`