nfs as a module,1.3.96

Wolfgang Friess (Wolfgang.Friess@dlr.de)
Mon, 29 Apr 1996 12:40:44 +0200 (MET DST)


Appended is a patch which allows to include NFS filesystem
as a module. The symbol exit_mm is not resolved otherwise.
(I don't know if it is the correct place to export that symbol.)

By the way, when nfs is AUTOLOADED by mounting a nfs volume,
the use count for nfs (output of lsmod) is set to 5
(1 for the filesystem and 4 for four nfsiod daemons).
Unmounting the nfs volume decrements the use count by 1, but it
remains 4 due to the 4 daemons, which are not killed.
So the nfs module is NOT AUTOREMOVED BY KERNELD. Is it
possible to change that behaviour, eg by killing the nfsiods with
a call to kill_proc in cleanup_module?

-- 
___________________________________________________________
Wolfgang Friess, DLR, NE-HF, Postfach 11 16, 82230 Wessling
email: Wolfgang.Friess@dlr.de
Tel. +49(8153)28-2357, Fax -1135

--- orig/linux-1.3.96/kernel/ksyms.c Fri Apr 12 08:49:47 1996 +++ linux/kernel/ksyms.c Mon Apr 29 12:27:13 1996 @@ -169,6 +169,7 @@ X(generic_file_read), X(generic_file_mmap), X(generic_readpage), + X(exit_mm), /* device registration */ X(register_chrdev),