Subject: Re: bug in NFS_V2_ONLY option
To: Christian Groessler <cpg@aladdin.de>
From: Ben Harris <bjh21@netbsd.org>
List: current-users
Date: 04/28/2001 17:11:47
On 28 Apr 2001, Christian Groessler wrote:

> I think the mount syscall should fail if it requests v3, but the
> kernel understands v2 only. This is better than silently mounting v2.
> This is the change to the kernel code:

Thanks.  I've applied a change similar to this (but with different
errnos).

> Anyway, I think the cleaner approach would be if mount_nfs asks the
> kernel what nfs it understands before contacting the nfs server.
> How should this query be implemented? Additional syscall?

sysctl().  vfs.nfs.max_version or similar.

-- 
Ben Harris                                                   <bjh21@netbsd.org>
Portmaster, NetBSD/arm26               <URL:http://www.netbsd.org/Ports/arm26/>