home *** CD-ROM | disk | FTP | other *** search
- 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
- From: curt@ekhadafi.austin.ibm.com (Curt Finch 903 2F021 curt@aixwiz.austin.ibm.com 512-838-2806)
- Newsgroups: comp.protocols.nfs
- Subject: Re: lockd
- Message-ID: <1992Jul26.042158.25251@awdprime.austin.ibm.com>
- Date: 26 Jul 92 04:21:58 GMT
- References: <1992Jul21.174721.26888@nntpd.lkg.dec.com>
- Sender: news@awdprime.austin.ibm.com (USENET News)
- Organization: IBM AWD, Austin
- Lines: 51
-
- In article <1992Jul21.174721.26888@nntpd.lkg.dec.com> uresh@ovrbid.lkg.dec.com (Uresh Vahalia) writes:
- >
- >I have a few questions about the lockd protocol, which I am trying to
- >implement:
- >
- >1. There seem to be 3 flavors of each request - eg. for the lock
- >request, there is
- > nlm_lock, nlm_lock_msg and nlm_lock_res. Why? What are the differences?
- nlm_lock is not used in my experience
- nlm_lock_msgs says, "hey server, can i have this lock?"
- the rpc reply may say block, yes ,no, whatever
- if it says blocked, then later, when it is available, you'll get
- a ...
- nlm_lock_res, which means "result", which will say granted
-
- >2. What are the version 3 requests for (share, unshare, nm_lock and free_all?)
-
- PCNFS, which has no statd, and there fore no way to get informed when
- the server reboots.
-
- >3. What is the function of the cookie argument in all the calls?
-
- sort of like a filehandle in regular NFS, but instead you might call it
- a "lock handle" or better yet a "request handle". the RPC XID isn't good
- enough since it can change after multiple retries and since the nlm_....RES
- will came back for sure on a different XID.
-
- >4. What does the svid argument mean?
-
- server id?
-
- >
- >Can anyone point me to any document which gives me a high level description of
- >the protocol (besides just the uncommented spec?).
-
- the code is all you get as far as i know
- and it ain't much help
- not well doc'd
-
- sniffers or snoop on suns or iptrace/ipreport on AIX are your only help
- really for figuring all this out. you just have to watch the transactions
- and try to guess what's going on w/ code in hand
-
- p.s. don't ever try to write your own lockd. buy the code.
-
-
- --
-
- curt@aixwiz.austin.ibm.com (Curt L. Finch) | AIX NFS/NIS Field Quality
- My views are unrelated to those of IBM | Austin, TX
- There'll be too many elderly in 30 years for your kids to afford all the FICA.
-