s3:smb2_create: allow durable handles with SMB2_LEASE_HANDLE
commitde762d22cdd16069e77602bfa3ab2d7589e23035
authorVolker Lendecke <vl@samba.org>
Tue, 28 Oct 2014 22:31:46 +0000 (28 15:31 -0700)
committerKarolin Seeger <kseeger@samba.org>
Thu, 4 Dec 2014 20:11:13 +0000 (4 21:11 +0100)
tree6bce28a06eef7d05e5d06da920c37ab54d7abea5
parent2a36fc77170bc632464fe69d68dfebc8c25c7d0e
s3:smb2_create: allow durable handles with SMB2_LEASE_HANDLE

We don't support real lease yet, but this makes use of fsp_lease_type()
which converts a batch oplock into and RWH lease.

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 81a5a9e8971fad928e0a1a022e7cb841d8dbadf5)
source3/smbd/durable.c
source3/smbd/smb2_create.c