Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 234758 - When stopping NFS server, the nfsd filesystem in /proc, does not get unmounted, thus the module is left in use
Summary: When stopping NFS server, the nfsd filesystem in /proc, does not get unmoun...
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal
Assignee: Network Filesystems
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-08-14 18:05 UTC by Arhont
Modified: 2008-08-16 05:22 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Arhont 2008-08-14 18:05:07 UTC
When the nfs is started, the init.d script mounts the 

nfsd on /proc/fs/nfs type nfsd (rw,noexec,nosuid,nodev)


However, when the /etc/init.d/nfs is stopped, one would expect that everything relating to NFS service provision would be stopped as well, atleast, what was caused by the actions of the init script. Unfortunately, the proc is left mounted, thus preventing the nfsd module from unloading.
and you know how tiresome it could be sometimes to find out what keeps the module busy.

Reproducible: Always

Steps to Reproduce:
1. /etc/init.d/nfs start
2. /etc/init.d/nfs stop
3. lsmod | grep nfsd
nfsd                  265256  1
auth_rpcgss            45408  1 nfsd
exportfs                5376  1 nfsd
nfs_acl                 3840  2 nfsd,nfs
lockd                  69296  2 nfsd,nfs
sunrpc                184392  7 nfsd,auth_rpcgss,nfs,nfs_acl,lockd

4. mount | grep nfsd
nfsd on /proc/fs/nfs type nfsd (rw,noexec,nosuid,nodev)




Expected Results:  
include umount /proc/fs/nfs in the stop part of the script
Comment 1 SpanKY gentoo-dev 2008-08-16 05:22:34 UTC
we dont do pseudo filesystem or module cleanup with init scripts ... no real way of knowing what the user's intentions are with either.