home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!bcstec!bronte!sundry!sdc!krm
- From: krm@sdc.boeing.com (Keith Michaels)
- Newsgroups: comp.protocols.nfs
- Subject: NFS cookies
- Message-ID: <7594@fury.BOEING.COM>
- Date: 10 Dec 92 21:38:32 GMT
- Sender: news@sdc.boeing.com
- Followup-To: comp.protocols.nfs
- Organization: Boeing Computer Services (ESP), Seattle, WA
- Lines: 24
- Nntp-Posting-Host: snake
-
- Does anyone know what the practical limitations are for the 32 bit
- NFS "cookie" that is used in the READDIR function? Some servers use
- only printable characters in the cookie; this may be a concession to
- clients that manipulate it with strcpy(), but if so it unnecessarily
- limits the range of cookie values (only the zero byte must be avoided).
- Does the protocol sanction the use of unprintable cookies?
-
- Also, is there any truth to the rumor that the first byte of the cookie is
- reserved for use by the client? I can't find any code to substatiate
- that. If it's true, it also cuts down on the cookie range -- which
- leads to the real question:
-
- How can NFS guarantee correct behavior of an operation that exhausts the
- address space of the cookie?
-
- This is not just of theoretical interest! We have acually hit this problem
- on recursive operations like find. The result is duplicate files returned.
- Surely there's a more graceful -- more correct -- way of handling this!
-
- --
- /*----------------------------------------------*
- * Keith R. Michaels | The Boeing Company *
- * krm@sdc.boeing.com | Seattle, WA. *
- *----------------------------------------------*/
-