CTDB internals

Christopher R. Hertel crh at samba.org
Fri Nov 2 01:44:45 MDT 2012

On 11/02/2012 02:29 AM, Volker Lendecke wrote:
> On Fri, Nov 02, 2012 at 02:18:36AM -0500, Christopher R. Hertel wrote:
>> Ah...
>> No, it's *both*.  I just found the notes I need in smb.conf.  If I
>> understand correctly, the byte-range locks are stored in brlock.tdb but are
>> also made using fcntl byte-range locking.
>> The only questions for me, then, are to know how byte range locks are
>> enforced by Samba and whether or not I'm miles off in my understanding here.
> Before every read and write we check if an fcntl lock is
> set. Racy, but the best we can do.

What information is actually stored in brlock.tdb, and how is it used when
it's checked?  Is it a short-cut?


Chris -)-----

"Implementing CIFS - the Common Internet FileSystem" ISBN: 013047116X
Samba Team -- http://www.samba.org/     -)-----   Christopher R. Hertel
jCIFS Team -- http://jcifs.samba.org/   -)-----   ubiqx development, uninq.
ubiqx Team -- http://www.ubiqx.org/     -)-----   crh at ubiqx.mn.org
OnLineBook -- http://ubiqx.org/cifs/    -)-----   crh at ubiqx.org

More information about the samba-technical mailing list