rpc.idmapd needs nfsd.ko
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
nfs-utils (Debian) |
Fix Released
|
Unknown
|
|||
nfs-utils (Gentoo Linux) |
Fix Released
|
Medium
|
|||
nfs-utils (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
After starting nfs-common with NEED_IDMAPD=yes, I tried to mount an NFSv4 mount. The mount worked, but the ownerships were mapped to nobody/nogroup. I verified rpc.idmapd was running on both ends, which was the case. Next I killed rpc.idmapd and restarted it from the command line with debug output: "rpc.idmapd -fvvv". The result on the ubuntu side was pretty instructive:
$ sudo rpc.idmapd -fvvv
rpc.idmapd: libnfsidmap: using domain: localdomain
rpc.idmapd: libnfsidmap: using translation method: nsswitch
rpc.idmapd: Expiration time is 600 seconds.
rpc.idmapd: nfsdopenone: Opening /proc/net/
Indeed there was no directory nfs4.nametoid in /proc/net/rpc. As the /proc structure is generated by the kernel, I grepped the nfs kernel sources and found a reference in fs/nfsd/
So it seems that even an NFSv4 client would need nfsd.ko loaded. More precisely, idmapd needs it, so /etc/init.
ProblemType: Bug
Architecture: i386
Date: Fri May 30 03:41:08 2008
DistroRelease: Ubuntu 8.04
NonfreeKernelMo
Package: nfs-common 1:1.1.2-2ubuntu2.1
PackageArchitec
ProcEnviron:
SHELL=/bin/bash
PATH=/
LC_MESSAGES=C
LANG=de_DE.utf8
LC_CTYPE=
SourcePackage: nfs-utils
Uname: Linux 2.6.24-17-generic i686
Changed in nfs-utils: | |
status: | Unknown → Confirmed |
Changed in nfs-utils: | |
status: | Confirmed → Fix Released |
Changed in nfs-utils (Gentoo Linux): | |
importance: | Unknown → Medium |
Changed in nfs-utils (Debian): | |
status: | Unknown → Fix Released |
The attached patch causes nfsd.ko to be loaded before initmap is started, fixing the issue.
References: I found out that Gentoo has this issue as well, and there is a short thread about it on the linux nfsv4 mailing list. bugs.gentoo. org/show_ bug.cgi? id=220747 thread. gmane.org/ gmane.linux. nfsv4/6311/ focus=6312
http://
http://