s4: torture: vfs_fruit. Change test_fruit_locking_conflict() to match the vfs_fruit...
commiteb425d50447f25b349d478a3e89829d0fbf9ccaf
authorJeremy Allison <jra@samba.org>
Thu, 7 Feb 2019 02:01:52 +0000 (6 18:01 -0800)
committerKarolin Seeger <kseeger@samba.org>
Thu, 21 Feb 2019 11:31:46 +0000 (21 12:31 +0100)
treeb817697474f2ad9177d878f9ba68855a362da801
parentb650db4d06a88a128f7459268eb4986e612a056f
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

(cherry picked from commit 28990e4ba23695ecf264117efad90cc4e573302e)
source4/torture/vfs/fruit.c