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

Re: dot-locking



bruce@pixar.com said:
> You could leave the flock locking on and surround it with dot-locking.

From: lukas@teorica0.ifisicacu.unam.mx
> Wasn't there an argument recently on debian-devel that this scheme can
> break for NFS mounted files? I don't remember the details, but the bottom
> line was that pure dot-locking was the thing to do.

I went back and looked at the messages, and yes, plain dot-locking is
probably the thing to do.

The problems are

1. If two programs start using two different forms of locks on the same
   file, they'd better do it in the same order. It's better to just lock
   once and not gild the lily.

2. Rumor is that some NFS implementation will lock a file with lockf
   but can not subsequently unlock it.

	Bruce

--
Bruce Perens K6BP   Bruce@Pixar.com   510-215-3502
Finger bruce@master.Debian.org for PGP public key.
PGP fingerprint = 88 6A 15 D0 65 D4 A3 A6  1F 89 6A 76 95 24 87 B3 


Reply to: