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