s3:vfs: Correctly check if OFD locks should be enabled or not
authorAndreas Schneider <asn@samba.org>
Wed, 30 Jan 2019 17:45:34 +0000 (18:45 +0100)
committerKarolin Seeger <kseeger@samba.org>
Thu, 21 Feb 2019 11:30:43 +0000 (12:30 +0100)
commit1ed75df5711c67565bfe70e4e82de9df208a4a7c
tree5560d49aaa99acc4a070a619a5e24ebc506c816f
parentfcd5865f3ff7e966b376a2073d8477b1ef37fc25
s3:vfs: Correctly check if OFD locks should be enabled or not

Also the smb.conf options should only be checked once and a reload of
the config should not switch to a different locking mode.

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

Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
Autobuild-User(master): Jeremy Allison <jra@samba.org>
Autobuild-Date(master): Sat Feb  9 03:43:50 CET 2019 on sn-devel-144

(cherry picked from commit 7ff94b18e2e39567ef7a208084cc5c914c39d3bd)
source3/include/proto.h
source3/lib/util.c
source3/modules/vfs_default.c
source3/smbd/files.c