home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.protocols.nfs
- Path: sparky!uunet!munnari.oz.au!penguin!rod
- From: rod@philips.oz.au (Rod Roberts)
- Message-ID: <1992Jul29.002949.9242@philips.oz.au>
- Date: Wed, 29 Jul 92 00:29:49 GMT
- Organization: Philips Public Telecommunications Systems, Melbourne, Australia
- Subject: what locking techniques work over NFS
- Summary: see subject
- Keywords: file locking
- Lines: 24
-
- Yes, I know, this has probabaly been asked before. I this this question is
- covered by an FAQ could some kind soul send it to me, as I am _not_ a suscriber
- to this news group.
-
- My question is basicaly 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
-