2002-04-29 10:02:03

by Stelian Pop

[permalink] [raw]
Subject: [PATCH 2.5.11] 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 =====
--- 1.21/fs/Makefile Wed Apr 17 20:24:55 2002
+++ edited/fs/Makefile Mon Apr 29 11:34:40 2002
@@ -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 =====
--- 1.41/fs/namei.c Wed Apr 24 13:29:11 2002
+++ edited/fs/namei.c Mon Apr 29 11:37:52 2002
@@ -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,
--
Stelian Pop <[email protected]>
Alcove - http://www.alcove.com