home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / comp / protocol / nfs / 1968 < prev    next >
Encoding:
Text File  |  1992-07-28  |  1.3 KB  |  36 lines

  1. Newsgroups: comp.protocols.nfs
  2. Path: sparky!uunet!munnari.oz.au!penguin!rod
  3. From: rod@philips.oz.au (Rod Roberts)
  4. Message-ID: <1992Jul29.002949.9242@philips.oz.au>
  5. Date: Wed, 29 Jul 92 00:29:49 GMT
  6. Organization: Philips Public Telecommunications Systems, Melbourne, Australia
  7. Subject: what locking techniques work over NFS
  8. Summary: see subject
  9. Keywords: file locking
  10. Lines: 24
  11.  
  12. Yes, I know, this has probabaly been asked before. I this this question is
  13. covered by an FAQ could some kind soul send it to me, as I am _not_ a suscriber
  14. to this news group.
  15.  
  16. My question is basicaly this. which of the following file locking techniques
  17. work with multiple hosts accessing the same filesystem over NFS.
  18.  
  19. 1. lockf()  (System V)
  20. 2. flock()  (BSD)
  21. 3. link()   (generic) fails if new link already exists
  22. 4. create() (generic) fails if file exists and caller does no have write
  23.              permission
  24. 5. open()   (POSIX) fails if O_CREAT and O_EXCL flags are present an the file
  25.              exists.
  26.  
  27. My own suspicion is that methods 3 and 4 will work but not the others with the
  28. exception of 5 (maybe). Thanx in advance to anybody who can help me on this.
  29.  
  30.                                                         Rod
  31. -- 
  32. Rod Roberts
  33. e-mail: rod@philips.oz.au | Phone: +61 (3) 881 3574 | Fax: +61 (3) 881 3577
  34. Philips Public Telecommunications Systems
  35. 23 Lakeside Drive, Burwood East 3151, Melbourne, Victoria, AUSTRALIA
  36.