[PATCH] TDB tests to prove behaviour (was: Re: POSIX Locking (some pointers for those not already scared))

Andrew Bartlett abartlet at samba.org
Fri Mar 2 03:49:43 UTC 2018


On Fri, 2018-03-02 at 16:24 +1300, Andrew Bartlett via samba-technical
wrote:
> G'Day,
> 
> I've been working to understand locking, fork() and tdb as we move
> Samba to LMDB.  I had some fears before I realised that an fcntl() lock
> is not kept across fork(), so the stupid behaviour on close() doesn't
> matter if it is in the child.

I reworked some test code of Volker's into more tests for tdb_reopen()
and tdb_close() but mostly about inter-process locking.

Tarring and feathering welcome.  (or review and perhaps push). 

Andrew Bartlett

-- 
Andrew Bartlett
https://samba.org/~abartlet/
Authentication Developer, Samba Team         https://samba.org
Samba Development and Support, Catalyst IT   
https://catalyst.net.nz/services/samba



-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-tdb-Add-some-more-tests-to-prove-how-locking-works-t.patch
Type: text/x-patch
Size: 16112 bytes
Desc: not available
URL: <http://lists.samba.org/pipermail/samba-technical/attachments/20180302/afe08b8d/0001-tdb-Add-some-more-tests-to-prove-how-locking-works-t.bin>


More information about the samba-technical mailing list