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

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