3 MDIR=/lib/modules/`uname -r`/lustre
10 if [ -d /etc/modprobe.d ]; then
11 MODFILE="/etc/modprobe.d/Lustre"
13 MODFILE="/etc/modprobe.conf"
15 if [ `uname -r | cut -c 3` -eq 4 ]; then
19 MODFILE="/etc/modules.conf"
22 echo "Copying modules from local build dir to "$MDIR
24 cp -u ../../lnet/lnet/lnet.$EXT $MDIR
25 cp -u ../../libcfs/libcfs/libcfs.$EXT $MDIR
26 cp -u ../../lnet/klnds/socklnd/ksocklnd.$EXT $MDIR
27 cp -u ../../lnet/tests/pingcli.$EXT $MDIR
28 cp -u ../../lnet/tests/pingsrv.$EXT $MDIR
29 cp -u ../mgs/mgs.$EXT $MDIR
30 cp -u ../quota/lquota.$EXT $MDIR
31 cp -u ../quota/quotacheck_test.$EXT $MDIR
32 cp -u ../quota/quotactl_test.$EXT $MDIR
33 cp -u ../ptlrpc/ptlrpc.$EXT $MDIR
34 cp -u ../ptlrpc/gss/ptlrpc_gss.$EXT $MDIR
35 cp -u ../fld/fld.$EXT $MDIR
36 cp -u ../lov/lov.$EXT $MDIR
37 cp -u ../mdc/mdc.$EXT $MDIR
38 cp -u ../llite/lustre.$EXT $MDIR
39 cp -u ../obdclass/llog_test.$EXT $MDIR
40 cp -u ../obdclass/obdclass.$EXT $MDIR
41 cp -u ../mdt/mdt.$EXT $MDIR
42 cp -u ../fid/fid.$EXT $MDIR
43 cp -u ../mds/mds.$EXT $MDIR
44 cp -u ../osd/osd.$EXT $MDIR
45 cp -u ../obdecho/obdecho.$EXT $MDIR
46 cp -u ../obdfilter/obdfilter.$EXT $MDIR
47 cp -u ../cmm/cmm.$EXT $MDIR
48 [ $KVER == "26" ] && cp -u ../../ldiskfs/ldiskfs/ldiskfs.$EXT $MDIR
49 cp -u ../lvfs/quotafmt_test.$EXT $MDIR
50 cp -u ../mdd/mdd.$EXT $MDIR
51 cp -u ../osc/osc.$EXT $MDIR
52 cp -u ../ost/ost.$EXT $MDIR
53 cp -u ../mgc/mgc.$EXT $MDIR
54 cp -u ../lvfs/$FSFLT.$EXT $MDIR
55 cp -u ../lvfs/lvfs.$EXT $MDIR
56 cp -u ../lmv/lmv.$EXT $MDIR
58 # prevent warnings on my uml
59 rm -f /lib/modules/`uname -r`/modules.*
63 echo "Copying mount from local build dir to "$MDIR
64 cp -u ../utils/mount.lustre /sbin/.
65 cp -u ../utils/l_getidentity /usr/sbin/.
66 cp -u ../utils/lfs /usr/sbin/.
69 MPI="$MP --ignore-install"
71 [ -e $MODFILE ] || touch $MODFILE
72 if [ `egrep -c "lustre|lnet" $MODFILE` -eq 0 ]; then
73 echo Modifying $MODFILE
74 echo "# Lustre modules added by $0" >> $MODFILE
75 echo "# Networking options, see /sys/module/lnet/parameters" >> $MODFILE
76 echo "options lnet networks=tcp" >> $MODFILE
77 echo "# end Lustre modules" >> $MODFILE
80 # To generate gdb debug file:
81 # modprobe lustre; modprobe mds; modprobe obdfilter; modprobe mgs; modprobe mgc
82 # rm -f /r/tmp/ogdb-`hostname`
83 # ./lctl modules > /r/tmp/ogdb-`hostname`