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)
committerJeremy Allison <jra@samba.org>
Thu, 4 Dec 2014 04:45:10 +0000 (05:45 +0100)
commitb72fca52defa1fd0f7d10f2811d86bbc7c661f50
treec2da897552f5ae95d221f36d26f14fc1b1f899bd
parent7ca8785cae6529fe9b8f5546aaf3c15cca9458cd
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>
source3/smbd/files.c
source3/smbd/oplock.c
source3/smbd/proto.h