This simplifies the reconnect assumptions, when we want to allow
more than one durable handle on a file for multiple clients with
READ+HANDLE leases.
BUG: https://bugzilla.samba.org/show_bug.cgi?id=15649
BUG: https://bugzilla.samba.org/show_bug.cgi?id=15651
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
+++ /dev/null
-^samba3.smb2.durable-open.lock-noW-lease
-^samba3.smb2.durable-v2-open.lock-noW-lease
return NT_STATUS_NOT_SUPPORTED;
}
+ if (fsp->current_lock_count != 0 &&
+ (fsp_lease_type(fsp) & SMB2_LEASE_WRITE) == 0)
+ {
+ return NT_STATUS_NOT_SUPPORTED;
+ }
+
/*
* For now let it be simple and do not keep
* delete on close files durable open