Subject: Re: bug in NFS_V2_ONLY option
To: Christian Groessler <>
From: Ben Harris <>
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

> 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                                                   <>
Portmaster, NetBSD/arm26               <URL:>