s3:smbd: add fsp_lease_type() and get_lease_type() helper functions
authorVolker Lendecke <vl@samba.org>
Tue, 28 Oct 2014 22:31:46 +0000 (15:31 -0700)
committerKarolin Seeger <kseeger@samba.org>
Thu, 4 Dec 2014 20:11:13 +0000 (21:11 +0100)
commit2a36fc77170bc632464fe69d68dfebc8c25c7d0e
tree79f2e50530adab842c601eba554bb50889ad40fb
parent84bd71b568c9383718673ad953d550379271a90f
s3:smbd: add fsp_lease_type() and get_lease_type() helper functions

These convert the oplock state into SMB2_LEASE_ flags.

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
(cherry picked from commit b72fca52defa1fd0f7d10f2811d86bbc7c661f50)
source3/smbd/files.c
source3/smbd/oplock.c
source3/smbd/proto.h