s4: torture: vfs_fruit. Change test_fruit_locking_conflict() to match the vfs_fruit...
authorJeremy Allison <jra@samba.org>
Thu, 7 Feb 2019 02:01:52 +0000 (18:01 -0800)
committerJeremy Allison <jra@samba.org>
Fri, 8 Feb 2019 22:26:46 +0000 (23:26 +0100)
commit28990e4ba23695ecf264117efad90cc4e573302e
tree6a7ae3a223a23e9761a7e68161e839db9074e31a
parent3204dc66f6801a7c8c87c48f601e0ebdee9e3d40
s4: torture: vfs_fruit. Change test_fruit_locking_conflict() to match the vfs_fruit working server code.

Originally added for BUG: https://bugzilla.samba.org/show_bug.cgi?id=13584
to demonstrate a lock order violation, this test
exposed problems in the mapping of SMB1/2 share modes
and open modes to NetATalk modes once we moved to OFD locks.

Change the test slightly (and add comments)
so it demonstrates working NetATalk share modes
on an open file.

BUG: https://bugzilla.samba.org/show_bug.cgi?id=13770

Signed-off-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Ralph Böhme <slow@samba.org>
Autobuild-User(master): Jeremy Allison <jra@samba.org>
Autobuild-Date(master): Fri Feb  8 23:26:46 CET 2019 on sn-devel-144
source4/torture/vfs/fruit.c