gnu-arch-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Gnu-arch-users] [BUG] FEATURE PLANS: revlib locking


From: Andrew Suffield
Subject: Re: [Gnu-arch-users] [BUG] FEATURE PLANS: revlib locking
Date: Sat, 29 May 2004 13:38:54 +0100
User-agent: Mutt/1.5.6i

On Sat, May 29, 2004 at 08:25:47AM -0400, Aaron Bentley wrote:
> Tom Lord wrote:
> >Commands which use a revision library tree should acquire an
> >(ordinary, flock) read lock on a file in that tree.
> >
> >Commands which delete revision library trees should acquire
> >a write lock on that same file.
> 
> Are flocks supported by network filesystems like NFS and SAMBA?

No. flock() is host-local - the lock is only between processes on the
current host.

NFS locking is somewhere between insanely complicated and completely
stupid. There are many approaches, all of which suck. fcntl() is the
only halfway reliable one, and if the server doesn't support it, it'll
just fail to lock. Lots of NFS servers don't support it.

SMB locking is incompatible with everything else on the planet. Just
don't go there.

-- 
  .''`.  ** Debian GNU/Linux ** | Andrew Suffield
 : :' :  http://www.debian.org/ |
 `. `'                          |
   `-             -><-          |

Attachment: signature.asc
Description: Digital signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]