*BSD News Article 49875


Return to BSD News archive

Path: euryale.cc.adfa.oz.au!newshost.anu.edu.au!harbinger.cc.monash.edu.au!simtel!pravda.aa.msen.com!spool.mu.edu!howland.reston.ans.net!agate!reason.cdrom.com!usenet
From: "Jordan K. Hubbard" <jkh@FreeBSD.org>
Newsgroups: comp.unix.bsd.freebsd.misc
Subject: Re: FreeBSD, AMD and Suns
Date: 31 Aug 1995 18:59:40 GMT
Organization: Walnut Creek CDROM
Lines: 25
Message-ID: <4250qs$j2l@reason.cdrom.com>
References: <GILHAM.95Aug30135200@lily.csl.sri.com>
NNTP-Posting-Host: time.cdrom.com
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
X-Mailer: Mozilla 1.1N (X11; I; FreeBSD 2.2-CURRENT i386)
To: gilham@lily.csl.sri.com
X-URL: news:GILHAM.95Aug30135200@lily.csl.sri.com

gilham@lily.csl.sri.com (Fred Gilham) wrote:
>The problem is, there doesn't seem to be any way to tell AMD that you
>want it to use a reserved port.  I'm trying to use the NIS mount maps
>that we use when running AMD on Suns; the automount succeeds but the
>remote mounted directory isn't accessible and the following message
>appears on the console of the Suns:

Oh, I wouldn't say that..  Use The Source, Luke!  Quick look at
/usr/src/sbin/mount_nfs/mount_nfs.c shows that -P or's in the NFSMNT_RESVPORT
option, so we then dash over to /usr/src/usr.sbin/amd/amd and grep for it,
revealing the following in nfs_ops.c:

#ifdef NFSMNT_RESVPORT
        if (hasmntopt(&mnt, "resvport") != NULL)
                nfs_args.flags |= NFSMNT_RESVPORT;
#endif

Looks like you need the `resvport' option in your map file.

All of 2 minutes work.  Sheesh, young kids these days, you gotta show 'em
everything! :-)

-- 
						Jordan