home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #30 / NN_1992_30.iso / spool / comp / protocol / nfs / 2953 < prev    next >
Encoding:
Text File  |  1992-12-14  |  2.7 KB  |  66 lines

  1. Newsgroups: comp.protocols.nfs
  2. Path: sparky!uunet!eco.twg.com!twg.com!twg.com!hyung
  3. From: hyung@twg.com (Henry Yung (The Last In Line))
  4. Subject: Re: NFS cookies
  5. Message-ID: <1992Dec14.222036.25546@twg.com>
  6. Lines: 53
  7. Sender: hyung@hal.eco.twg.com (Henry Yung (The Last In Line))
  8. Reply-To: hyung@twg.com
  9. Organization: The Wollongong Group, West Coast Operations
  10. References: <7594@fury.BOEING.COM> <Bz7y89.2MxA@austin.ibm.com>
  11. Date: Mon, 14 Dec 1992 22:20:36 GMT
  12.  
  13.  
  14. In article <Bz7y89.2MxA@austin.ibm.com>, curt@ekhadafi.austin.ibm.com (Curt
  15. Finch 903 2F021 curt@aixwiz.austin.ibm.com 512-838-2806) writes:
  16. |>
  17. |>The cookie is generated by the server and is supposed to be opaque
  18. |>right?  Clients shouldn't look at it.  They shouldn't even care what's
  19. |>in it.
  20. |>
  21.  
  22. According to the protocol, that is true, but unfortunately, in
  23. reality, that is not always the case.
  24.  
  25. |>I vaguely remember seeing code somewhere in someone's NFS implemen-
  26. |>tation, (And I've seen lots of implementations now,) where the client
  27. |>used it to see how far to increment some value for the next readdir (or
  28. |>something like that.) If the client's doing that, he's broken.  He's
  29. |>violating the protocol.  
  30. |>
  31.  
  32. Unfortunately, the cookie is not THAT opaque.  A lot of clients do
  33. care about what is inside the cookie, including Sun's.  A couple of months
  34. ago I posted a similar problem to this group describing a problem where
  35. a 'ls' from a Sun client kept on listing the same set of files again
  36. and again.  It turned out that although my cookies were increasing from 0
  37. onward, the 32-bit word (cookie) was not in network byte order.  The
  38. VAX NFS server, having a different integer representation than that of
  39. Sun's, sent the cookie in its native representation thinking that the
  40. cookie is opaque, which turned out to be not true.  Consequently, the
  41. client was seeing cookies with some huge values and in a strange order.
  42. Changing the byte order of the cookie on the server pleased the client
  43. and resolved the problem.
  44.  
  45. |>But if some client doesn't work right with your server and their
  46. |>support organization is no help to you, that isn't much consolation is
  47. |>it?
  48.  
  49. Well, in our case, we changed the server to accomodate these clients.
  50.  
  51. |>-- 
  52. |>curt@aixwiz.austin.ibm.com (Curt L. Finch) | AIX NFS/NIS Field Quality 
  53. |>My views are unrelated to my employer's    |        Austin, TX
  54. |> There'll be too many elderly in 30 years for your kids to afford all the FICA.
  55. |>
  56. |>
  57.  
  58. ----------------------------------------------------------------------
  59.   __  __/  |      /    _____/  Henry Yung    Email: hyung@twg.com
  60.      /     |     /    /        VMS Software Engineering
  61.     /        /  /    / -- /    The Wollongong Group, Inc.
  62.   _/       _/ _/   ______/     Voice: (415)962-7100 FAX: (415)969-5547
  63.  
  64.  
  65.  
  66.