[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

typo in /usr/share/lkm/vfs/module/kernfsmod.c



There is a typo in /usr/share/lkm/vfs/module/kernfsmod.c

brutto$ cd /usr/share/lkm/vfs/module
brutto$ sudo make all load
cc -O2 -pipe  -D_KERNEL -I/sys -I.  -c kernfsmod.c
cc -O2 -pipe  -D_KERNEL -I/sys -I. -c -o kernfs_vfsops.o /sys/miscfs/kernfs/kernfs_vfsops.c
cc -O2 -pipe  -D_KERNEL -I/sys -I. -c -o kernfs_vnops.o /sys/miscfs/kernfs/kernfs_vnops.c
ld -r -o combined.o kernfsmod.o kernfs_vfsops.o kernfs_vnops.o
modload -o kernfsmod -ekernfsmod combined.o
Module loaded as ID 0
brutto$ sudo make unload
modunload -n kernfsmod
modunload: no such module
*** Error code 3

Stop in /usr/src/share/lkm/vfs/module (line 59 of Makefile).

Here is a patch

Index: kernfsmod.c
===================================================================
RCS file: /cvs/src/share/lkm/vfs/module/kernfsmod.c,v
retrieving revision 1.3
diff -u -r1.3 kernfsmod.c
--- kernfsmod.c	2000/03/02 14:46:41	1.3
+++ kernfsmod.c	2004/04/02 08:16:47
@@ -69,7 +69,7 @@
  * change the file system operation: for instance, in ISOFS, this
  * could be used to enable/disable Rockridge extensions.
  */
-MOD_VFS("kernfs", -1, &kernfs_vfsconf)
+MOD_VFS("kernfsmod", -1, &kernfs_vfsconf)
 
 /*
  * External entry point; should generally match name of .o file.  The