Summary: | security/cfs rc script needs "mntudp" option on 8-CURRENT | ||
---|---|---|---|
Product: | Ports & Packages | Reporter: | Thiemo Nordenholz <list+kilncd01jljrzlqt> |
Component: | Individual Port(s) | Assignee: | Chris Rees <crees> |
Status: | Closed FIXED | ||
Severity: | Affects Only Me | ||
Priority: | Normal | ||
Version: | Latest | ||
Hardware: | Any | ||
OS: | Any |
Description
Thiemo Nordenholz
2009-04-10 11:40:01 UTC
Hi, do you have a patch to this? Responsible Changed From-To: freebsd-ports-bugs->sylvio I'll take it. State Changed From-To: open->feedback - Waiting feedback of submitter. Hi, > Hi, do you have a patch to this? No. As suggested in my "Fix" section, this seems to be release-dependent, and I had no good idea how to build this into the ports framework. Someone with more insight in the ports' Makefile workings might come up with a good idea easily... I hope. Cheers, Thiemo -- Query a PGP key server (e.g. http://www.pgp.net/) for my public key 41068629. Strange sender address? Please see http://www.thiemo.net/misc/list-mail.shtml Responsible Changed From-To: sylvio->freebsd-ports-bugs back to pool. State Changed From-To: feedback->open Feedback received. 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 FWIW, there is a simple workaround to this issue. Just set cfsd_port in rc.conf as follows: cfsd_port="3049,udp" This argument will be passed to cfsd as well as to mount_nfs, but cfsd doesn't seem to care about the `,udp' trailer. Cfsd expects a port number as its only argument but it doesn't seem to check if the argument is entirely numeric -- a bug very common to older code using atoi() or strtol(foo, NULL, ...). Yar Responsible Changed From-To: freebsd-ports-bugs->crees I'll take it. crees 2011-08-17 10:52:12 UTC FreeBSD ports repository Modified files: security/cfs Makefile security/cfs/files cfsd.sh.in Log: Fix rc script to stop nfs hangs PR: ports/133563 Submitted by: Thiemo Nordenholz <list@thiemo.net>, yar Revision Changes Path 1.27 +1 -1 ports/security/cfs/Makefile 1.3 +5 -3 ports/security/cfs/files/cfsd.sh.in _______________________________________________ cvs-all@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/cvs-all To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org" State Changed From-To: open->closed Committed. Thanks! |