Hi,

I'm trying out PVFS2 on a Debian/sarge system with kernel 2.6.8. I compiled the pvfs2 kernel module just fine, but it wouldn't load:

fredo# modprobe pvfs2
FATAL: Error inserting pvfs2 (/lib/modules/2.6.8-2-686-smp/kernel/fs/pvfs2.ko): Unknown symbol in module, or unknown parameter (see dmesg)

and in /var/log/kern.log:
Mar 23 10:51:36 fredo kernel: pvfs2: Unknown symbol mmput
Mar 23 10:51:36 fredo kernel: pvfs2: Unknown symbol mmgrab

I recompiled the kernel after adding the following two lines:

diff -ur kernel-source-2.6.8/kernel/fork.c kernel-source-2.6.8-patched/kernel/fork.c
--- kernel-source-2.6.8/kernel/fork.c   2004-08-14 07:36:16.000000000 +0200
+++ kernel-source-2.6.8-patched/kernel/fork.c 2006-03-22 20:31:54.000000000 +0
100
@@ -466,6 +466,8 @@
        }
 }

+EXPORT_SYMBOL_GPL(mmput);
+
 /*
  * Checks if the use count of an mm is non-zero and if so
  * returns a reference to it after bumping up the use count.
@@ -483,6 +485,8 @@
        return mm;
 }

+EXPORT_SYMBOL_GPL(mmgrab);
+
 /* Please note the differences between mmput and mm_release.
  * mmput is called whenever we stop holding onto a mm_struct,
  * error success whatever.


With this patch in place, the module loads fine.  Any comments?

Alex


--
Alexander Jolk         /         BUF Compagnie
tel +33-1 42 68 18 28 /  fax +33-1 42 68 18 29
_______________________________________________
Pvfs2-developers mailing list
[email protected]
http://www.beowulf-underground.org/mailman/listinfo/pvfs2-developers

Reply via email to