Date: Fri, 14 Jan 2011 00:10:07 GMT From: Yar Tikhiy <yar@freebsd.org> To: freebsd-ports-bugs@FreeBSD.org Subject: Re: ports/133563: security/cfs rc script needs "mntudp" option on 8-CURRENT Message-ID: <201101140010.p0E0A7EN099321@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
The following reply was made to PR ports/133563; it has been noted by GNATS. From: Yar Tikhiy <yar@freebsd.org> To: bug-followup@freebsd.org Cc: Subject: Re: ports/133563: security/cfs rc script needs "mntudp" option on 8-CURRENT Date: Fri, 14 Jan 2011 10:38:29 +1100 Hi there, This problem report is still relevant. Please note that the original discussion missed a few points. First of all, the suggested fix is not quite correct. The mount option needed here is spelled "udp" not "mntudp", the difference being that "mntudp" is to force _mount_ protocol to UDP transport and it does so to NFS protocol, too, only as a side effect in more recent mount_nfs revisions. Cfsd is an old NFS daemon and it has no support for TCP transport soever. Hence the error: [tcp] localhost:/usr/local/cfsd-bootstrap: nfsd: RPCPROG_NFS: RPC: Remote system error - Connection refused [tcp6] localhost:/usr/local/cfsd-bootstrap: nfsd: RPCPROG_NFS: RPC: Remote system error - Connection refused The fix indeed is FreeBSD version specific. Unfortunately, historic mount_nfs revisions had no "udp" option because it was default. The workaround can be to use %%FOO%% magic to insert the udp option in cfsd.sh.in if the OS version is 8.x or newer. The resulting mount_nfs opts need to look like this (in any order): udp,port="$cfsd_port",nfsv2 Thanks, Yar
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201101140010.p0E0A7EN099321>