From owner-freebsd-questions Thu Mar 13 08:37:56 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id IAA05937 for questions-outgoing; Thu, 13 Mar 1997 08:37:56 -0800 (PST) Received: from krygierpc.kph.uni-mainz.de (krygierpc.kph.uni-mainz.de [134.93.132.24]) by freefall.freebsd.org (8.8.5/8.8.5) with ESMTP id IAA05930 for ; Thu, 13 Mar 1997 08:37:47 -0800 (PST) Received: from localhost (krygier@localhost) by krygierpc.kph.uni-mainz.de (8.7.5/8.7.3) with ESMTP id RAA12739; Thu, 13 Mar 1997 17:36:32 +0100 (MET) X-Authentication-Warning: krygierpc.kph.uni-mainz.de: krygier owned process doing -bs Date: Thu, 13 Mar 1997 17:36:32 +0100 (MET) From: Klaus Werner Krygier To: Doug Rabson cc: questions@freebsd.org Subject: Re: NFSV3 - NFS on FreeBSD 2.2 In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Content-Transfer-Encoding: 8BIT Sender: owner-questions@freebsd.org X-Loop: FreeBSD.org Precedence: bulk On 13 Mar 1997, Doug Rabson wrote: > > > > > How can I manage this? At the moment I have to specify at the client > > > side the apropriate mount options to use NFS V2. Is it also possible > > > to disable NFS V3 globally on the FreeBSD server? > > > > Ah, I see - yes, how to force FreeBSD be an NFS V2 *server* is what > > you're asking (sorry, it's early in the morning for me here :). > > > > Hmmmmmm.... That's a good question. :-) > > > > There appear to be flags for turning the NFS server off entirely > > (NFS_NOSERVER) but none for specifically disabling NFS v3. Any ideas, > > Doug? I've poked around in nfssvc() a little and don't see any > > obvious way... > > Without testing, it seems to me that you could simply hack mountd.c > and remove the two calls to svc_register which register the v3 mountd > protocol. If the mountd refuses to talk the v3 protocol, then the > client at the other end will fall back to v2 (which uses the v1 mountd > protocol to be confusing). > > -- I have already tested this. It works for standard mount requests but the Digital automounter refuses to work with this hack. Instead it produces the following syslog message Mar 11 05:55:36 a1a automount[12904]: Can't ping mountd version 3 at server a1messpc1: RPC: Program/version mismatch; low version = 1, high version = 1 Klaus Werner +-----------------------------------------------------------------------+ | Dr. Klaus Werner Krygier | Email: krygier@kph.uni-mainz.de | | Institut für Kernphysik | | | Johannes Gutenberg-Universität | Tel: +49-6131-39-2960 | | J.J.Becher-Weg 45 | +49-6131-39-5192 | | D-55099 Mainz | Fax: +49-6131-39-2964 | +-----------------------------------------------------------------------+