tdb: add run-fcntl-deadlock test
authorStefan Metzmacher <metze@samba.org>
Tue, 11 Apr 2017 15:21:20 +0000 (17:21 +0200)
committerGarming Sam <garming@samba.org>
Wed, 14 Jun 2017 23:24:25 +0000 (01:24 +0200)
commitc581ab3ac5099b3509a15f9f6abf3ab7512dd70b
tree8d43f1c1bd6f751df6078152e9e5d34c0cd49e64
parent2277301e46614154977b242d38669673eee5fe25
tdb: add run-fcntl-deadlock test

This verifies the F_RDLCK => F_WRLCK upgrade logic in the kernel
for conflicting locks.

This is a standalone test to check the traverse_read vs.
allrecord_lock/prepare_commit interaction.

This is based on the example from
https://lists.samba.org/archive/samba-technical/2017-April/119861.html
from Douglas Bagnall <douglas.bagnall@catalyst.net.nz> and Volker Lendecke <vl@samba.org>.

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Garming Sam <garming@catalyst.net.nz>
lib/tdb/test/run-fcntl-deadlock.c [new file with mode: 0644]
lib/tdb/wscript