Summary: | net-fs/nfs-utils-1.2.9 - OPTS_NFSD settings from /etc/conf.d/nfs overwritten during /etc/init.d/nfs execution | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Toralf Förster <toralf> |
Component: | Current packages | Assignee: | Network Filesystems <net-fs> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | barzog, bugzie |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- |
Description
Toralf Förster
2014-02-01 19:04:31 UTC
I'm sure it is a regression, because when NFS v4.2 was available - I immediately tested it and had therefore to add OPTS_NFSD="versions=4.2" - and that worked in the past. steps to reproduce : trinity ~ # cat /proc/fs/nfsd/versions -2 +3 +4 +4.1 -4.2 trinity ~ # echo "2" > /proc/fs/nfsd/versions trinity ~ # echo "4.2" > /proc/fs/nfsd/versions trinity ~ # cat /proc/fs/nfsd/versions +2 +3 +4 +4.1 +4.2 trinity ~ # /etc/init.d/nfs start * Exporting NFS directories ... [ ok ] * Starting NFS mountd ... [ ok ] * Starting NFS daemon ... [ ok ] * Starting NFS smnotify ... [ ok ] trinity ~ # cat /proc/fs/nfsd/versions -2 +3 +4 +4.1 -4.2 for the record:fix is : OPTS_RPC_NFSD="-V 2 -V 3 -V 4 -V 4.1 -V 4.2 ${OPTS_RPC_NFSD}" For me its not working. The same modified init.d/nfs in conf.d/nfs: OPTS_RPC_NFSD="-V 3 -V 4 ${OPTS_RPC_NFSD}" also I don't have NFS 4.1 in kernel: CONFIG_NFS_FS=y CONFIG_NFS_V3=y # CONFIG_NFS_V3_ACL is not set CONFIG_NFS_V4=y # CONFIG_NFS_V4_1 is not set # CONFIG_NFS_USE_LEGACY_DNS is not set CONFIG_NFS_USE_KERNEL_DNS=y # CONFIG_NFS_USE_NEW_IDMAPPER is not set CONFIG_NFSD=y CONFIG_NFSD_V3=y # CONFIG_NFSD_V3_ACL is not set CONFIG_NFSD_V4=y CONFIG_LOCKD=y CONFIG_LOCKD_V4=y CONFIG_NFS_COMMON=y albatros2 ~ # /etc/init.d/nfs restart * Exporting NFS directories ... [ ok ] * Starting NFS mountd ... [ ok ] -2 +3 +4 -4.1 -V 3 -V 4 8 * Starting NFS daemon ... rpc.nfsd: Setting version failed: errno 22 (Invalid argument) [ ok ] -2 +3 +4 +4.1 * Starting NFS smnotify ... [ ok ] albatros2 ~ # nfs-utils also compiled without 4.1 support: albatros2 ~ # equery uses nfs-utils [ Legend : U - final flag setting for installation] [ : I - package is installed with flag ] [ Colors : set, unset ] * Found these USE flags for net-fs/nfs-utils-1.2.9: U I - - caps : Use Linux capabilities library to control privilege - - ipv6 : Add support for IP version 6 - - kerberos : Add kerberos support + + libmount : Link mount.nfs with libmount - - nfsdcld : Enable nfsdcld NFSv4 clientid tracking daemon + + nfsidmap : Enable support for newer nfsidmap helper + + nfsv4 : Enable support for NFSv4 - - nfsv41 : Enable support for NFSv4.1 + + tcpd : Add support for TCP wrappers + + uuid : Support UUID lookups in rpc.mountd |