s4: torture: vfs_fruit. Change test_fruit_locking_conflict() to match the vfs_fruit...
commitfbc8ea71c5c32bc87e07d0550f8bb8d08227fc5b
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:30:43 +0000 (21 12:30 +0100)
tree59803dd525bcc3771c64787556034bb8dd2361f6
parent72bcae77752b3918a5eb3f56e0aef0c76135a556
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