Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 12 Mar 1997 22:10:19 +0100
From:      j@uriah.heep.sax.de (J Wunsch)
To:        hackers@FreeBSD.ORG
Cc:        dfr@render.com (Doug Rabson)
Subject:   Re: NFSv3 (was: Maybe a showstopper...)
Message-ID:  <19970312221019.AB06345@uriah.heep.sax.de>
In-Reply-To: <sek9nd71zp.fsf@minnow.render.com>; from Doug Rabson on Mar 12, 1997 12:01:45 %2B0000
References:  <Pine.NEB.3.95.970310211652.24717A-100000@mail.cdsnet.net> <Pine.BSF.3.95q.970311110509.23141G-100000@fallout.campusview.indiana.edu> <19970311194645.GS08931@uriah.heep.sax.de> <19970311225100.SW24783@uriah.heep.sax.de> <sek9nd71zp.fsf@minnow.render.com>

next in thread | previous in thread | raw e-mail | index | archive | help
As Doug Rabson wrote:

> > Who had thought that Sun doesn't implement the NFSv3 specification
> > correctly? :-))

> You are spot on.  The calls to getdents are supplying stale cookies to
> the server and the server is telling them to get lost.  The client is
> supposed to recover from this be re-reading the directory.

Yep.

> If the cookies are rejected by the server, it simply re-reads from the
> start of the directory and rebuilds its logical (buffer offset) to
> physical (nfs cookie) mapping.  The file offset used by getdirentries
> is an offset into the logical mapping of the client's cache.

Glad to hear that FreeBSD's client doesn't suffer from the same
problem.  Let's see, our company is also a Sun reseller, i'll see to
get hold of someone there to make them aware of their problem.

OTOH, the FreeBSD server is what the NFSv3 specs calls ``overly
restrictive''.  Do you see any chance to make this behaviour more
benign, and hand out a new cookie verifier only if the directory has
really shrunk, and the old cookie indeed went stale?  (Correct me if
this is already the case, i have no idea what affects the va_filerev.)

-- 
cheers, J"org

joerg_wunsch@uriah.heep.sax.de -- http://www.sax.de/~joerg/ -- NIC: JW11-RIPE
Never trust an operating system you don't have sources for. ;-)



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?19970312221019.AB06345>