home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / comp / protocol / nfs / 1961 < prev    next >
Encoding:
Internet Message Format  |  1992-07-27  |  2.4 KB

  1. Path: sparky!uunet!gatech!destroyer!gumby!yale!yale.edu!qt.cs.utexas.edu!cs.utexas.edu!ut-emx!ibmchs!auschs!awdprime.austin.ibm.com!ekhadafi.austin.ibm.com!curt
  2. From: curt@ekhadafi.austin.ibm.com (Curt Finch 903 2F021 curt@aixwiz.austin.ibm.com 512-838-2806)
  3. Newsgroups: comp.protocols.nfs
  4. Subject: Re: lockd
  5. Message-ID: <1992Jul26.042158.25251@awdprime.austin.ibm.com>
  6. Date: 26 Jul 92 04:21:58 GMT
  7. References: <1992Jul21.174721.26888@nntpd.lkg.dec.com>
  8. Sender: news@awdprime.austin.ibm.com (USENET News)
  9. Organization: IBM AWD, Austin
  10. Lines: 51
  11.  
  12. In article <1992Jul21.174721.26888@nntpd.lkg.dec.com> uresh@ovrbid.lkg.dec.com (Uresh Vahalia) writes:
  13. >
  14. >I have a few questions about the lockd protocol, which I am trying to
  15. >implement:
  16. >
  17. >1.  There seem to be 3 flavors of each request - eg. for the lock
  18. >request, there is 
  19. >    nlm_lock, nlm_lock_msg and nlm_lock_res.  Why?  What are the differences?
  20. nlm_lock is not used in my experience
  21. nlm_lock_msgs says, "hey server, can i have this lock?"
  22.     the rpc reply may say block, yes ,no, whatever
  23.     if it says blocked, then later, when it is available, you'll get
  24.     a ...
  25. nlm_lock_res, which means "result", which will say granted
  26.  
  27. >2.  What are the version 3 requests for (share, unshare, nm_lock and free_all?)
  28.  
  29. PCNFS, which has no statd, and there fore no way to get informed when
  30. the server reboots.
  31.  
  32. >3.  What is the function of the cookie argument in all the calls?
  33.  
  34. sort of like a filehandle in regular NFS, but instead  you might call it
  35. a "lock handle"  or better yet a "request handle".  the RPC XID isn't good
  36. enough since it can change after multiple retries and since the nlm_....RES
  37. will came back for sure on a different XID.
  38.  
  39. >4.  What does the svid argument mean?
  40.  
  41. server id?
  42.  
  43. >
  44. >Can anyone point me to any document which gives me a high level description of
  45. >the protocol (besides just the uncommented spec?).
  46.  
  47. the code is all you get as far as i know
  48. and it ain't much help
  49. not well doc'd
  50.  
  51. sniffers or snoop on suns or iptrace/ipreport on AIX are your only help
  52. really for figuring all this out.  you just have to watch the transactions
  53. and try to guess what's going on w/ code in hand
  54.  
  55. p.s.  don't ever try to write your own lockd.  buy the code.
  56.  
  57.  
  58. -- 
  59.  
  60. curt@aixwiz.austin.ibm.com (Curt L. Finch) | AIX NFS/NIS Field Quality 
  61. My views are unrelated to those of IBM     |        Austin, TX
  62.  There'll be too many elderly in 30 years for your kids to afford all the FICA.
  63.