We don't support directory leases yet, so it should be
an noop for now.
The point is that we want to call
delay_for_oplock(oplock_request=NO_OPLOCK)
for directories soon.
BUG: https://bugzilla.samba.org/show_bug.cgi?id=15125
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
*poplock_type = NO_OPLOCK;
*pgranted = 0;
+ if (fsp->fsp_flags.is_directory) {
+ /*
+ * No directory leases yet
+ */
+ SMB_ASSERT(oplock_request == NO_OPLOCK);
+ if (have_sharing_violation) {
+ return NT_STATUS_SHARING_VIOLATION;
+ }
+ return NT_STATUS_OK;
+ }
+
if (oplock_request == LEASE_OPLOCK) {
if (lease == NULL) {
/*