home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!sun-barr!news2me.ebay.sun.com!seven-up.East.Sun.COM!tyger.Eng.Sun.COM!geoff
- From: geoff@tyger.Eng.Sun.COM (Geoff Arnold @ Sun BOS - R.H. coast near the top)
- Newsgroups: comp.protocols.nfs
- Subject: Re: lockd
- Date: 21 Jul 1992 19:46:10 GMT
- Organization: SunSelect
- Lines: 57
- Message-ID: <14hpi3INNppo@seven-up.East.Sun.COM>
- References: <1992Jul21.174721.26888@nntpd.lkg.dec.com>
- NNTP-Posting-Host: tyger.east.sun.com
-
- Quoth uresh@ovrbid.lkg.dec.com (Uresh Vahalia) (in <1992Jul21.174721.26888@nntpd.lkg.dec.com>):
- #
- #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 synchronous: the client requests the lock, and the
- server replies with a definitive "granted" or "failed" response.
-
- nlm_lock_msg and nlm_lock_res implement a call-back model. The client
- requests the lock with nlm_lock_msg. This RPC is ack'ed at once. The
- server then makes an nlm_lock_res call-back to the client indicating
- either that the lock has been granted or that the request is being
- processed. In the latter case, the server will eventually respond by
- making an nlm_granted RPC to the client.
-
- Why? Because back in 1986 it wasn't practical to create a multithreaded
- lock manager.
-
- #2. What are the version 3 requests for (share, unshare, nm_lock and free_all?)
-
- share, unshare: DOS-compatible file sharing by PC clients.
- nm_lock, free_all: locking support for PCs which couldn't run status monitors.
- (Disclaimer: I'm the author of these.)
-
- #3. What is the function of the cookie argument in all the calls?
-
- It allows the lock manager to match up corresponding asynchronous
- requests and callbacks.
-
- #4. What does the svid argument mean?
-
- In the X/Open spec it was renamed "uppid - unique per-process ID". Think
- "pid".
-
- #Can anyone point me to any document which gives me a high level description of
- #the protocol (besides just the uncommented spec?).
-
- There's only one good description:
-
- X/Open CAE Specifications: Protocols for X/O Interworking - XNFS.
- (ISBN 1 872630 10 3. Doc No. XO/CAE/91/030.)
-
- This document is available directly from the X/Open Company. As the time of
- writing, the phone numbers were:
- USA: +1(415)323 7992 or +1(703)876 0044
- Europe: +44 734 508311
- Japan: +81 3 3251 8321
-
- --
- ---------------------------------------+--------------------------------------
- Geoff Arnold, PC-NFS architect | Thought for the day: If Unix had been
- (geoff.arnold@East.Sun.COM) | developed in England, we'd all be using
- SunSelect, a Sun Microsystems Business | BCPL (and migrating to BCPL++)...
-