NFSv4 support has been added to 2.5 and 2.6 kernels. Some userspace tools need patches/updates. check the provided url for details. rpc_pipefs needs to be mounted to /var/lib/rpc_pipes nfsd filesystem needs to be mounted to /proc/fs/nfs idmap daemon needs to be started after mountd /sbin/mount needs a patch. (already integrated in util-linux ebuild) empty directory /var/lib/nfs/v4root should be created by the nfs-utils ebuild. for GSS security the gssd daemon and a patch to mit-krb5 is needed. (see http://www.citi.umich.edu/projects/nfsv4/rpcsec_gss-linux/ ) for general information about NFSv4 refer to http://www.nluug.nl/events/sane2000/papers/pawlowski.pdf
Created attachment 14899 [details, diff] patch to /etc/init.d/nfs to activate server-side features note: /etc/init.d/netmount must check if there are NFSv4 mounts and start the idmapd and mount rpc_pipefs.
Created attachment 14901 [details] ebuild for the idmap daemon
this looks like it's not really kernel related, I think might be for Azarah, but I'll boot it back to bug-wranglers in case anybody else wants to have a go
This appears to be required for nfs between machines running 2.6.3 or better: CONFIG_SECURITY=y CONFIG_SECURITY_CAPABILITIES=y or: CONFIG_SECURITY=y CONFIG_SECURITY_CAPABILITIES=m and modprobe capability Modprobing capability seems to have fixed my nfs connection errors; the errors only started after migrating an nfs server from a 2.4.20 RH machine to a 2.6.3 gentoo box (same 2.6.3 gentoo client). http://www.ussg.iu.edu/hypermail/linux/kernel/0311.3/0436.html
ive added idmapd to net-fs and updated nfs-utils to update the init.d script (1.0.6-r2) all that needs to be done now is update /etc/init.d/netmount which is part of baselayout
Created attachment 32928 [details, diff] netmount.patch proposed patch for netmount
added my little patch to cvs baselayout