Skip to contentSkip to conversation

nfsd module breakage

PATCH New Stelian Pop 1 participant 1 message Apr 29, 2002 VFS

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 nfsd module breakage

NFSD uses path_lookup, which changed from a static inline into a kernel internal function.

The new path_lookup is not exported to modules, making at least NFSD break when compiled as a modules.

The attached patch exports the new function to modules.

I'll leave up to Al to decide if this must be a _GPL only export...

Stelian.

===== fs/Makefile 1.21 vs edited =====

fs/Makefile +1 -1
@@ -7,7 +7,7 @@
 
 O_TARGET := fs.o
 
-export-objs :=	filesystems.o open.o dcache.o buffer.o bio.o
+export-objs :=	filesystems.o open.o dcache.o buffer.o bio.o namei.o
 mod-subdirs :=	nls
 
 obj-y :=	open.o read_write.o devices.o file_table.o buffer.o \

===== fs/namei.c 1.41 vs edited =====

fs/namei.c +2 -0
@@ -22,6 +22,7 @@
 #include <linux/dnotify.h>
 #include <linux/smp_lock.h>
 #include <linux/personality.h>
+#include <linux/module.h>
 
 #include <asm/namei.h>
 #include <asm/uaccess.h>
@@ -842,6 +843,7 @@
 	nd->flags |= LOOKUP_LOCKED;
 	return (path_walk(name, nd));
 }
+EXPORT_SYMBOL(path_lookup);
 
 /*
  * Restricted form of lookup. Doesn't follow links, single-component only,
Signature · 2 lines
Stelian Pop <[email protected]>
Alcove - http://www.alcove.com