Subject: Re: bug in NFS_V2_ONLY option
To: None <cpg@aladdin.de>
From: Ben Harris <bjh21@netbsd.org>
List: current-users
Date: 04/21/2001 16:00:54
In article <87ae5bqexe.fsf@gibbon.cnet.aladdin.de> you write:

[ getcwd() failing over NFS ]

>I'm not familiar with the kernel code, so this might be a big
>nonsense. But after this change getcwd() didn't work if invoked on a
>nfs mounted directory. (try /bin/pwd)
>
>I put in some debug messages and the cwd which gets generated goes up
>until it should switch from the nfs volume to the local disk, but it
>then continues to fill in "./" instead of jumping to the local dir.
>Finally the buffer overflows with the "./"s and ERANGE is returned.
>
>I have another i386 machine where this didn't happen, and comparing
>their CONFIGs (and trying many combinations) I deduced this only
>happens with NFS_V2_ONLY enabled (also on other archs e.g. macppc).

Does passing the "-2" option to mount_nfs (to force it to use NFSv2) have
any effect, either with or without NFS_V2_ONLY?  This should indicate
whether the bug's in the NFSv2 code itself, or in my hacks.

>Please fix!  :-)

Please file a PR!

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