Investigating durable handle errors
Ralph Boehme
slow at samba.org
Tue Jan 27 11:55:30 UTC 2026
Hi!
On 1/18/26 1:50 AM, Sjors Gielen via samba-technical wrote:
>> if (fsp->current_lock_count != 0 && (fsp_lease_type(fsp) &
>> SMB2_LEASE_WRITE) == 0) { return NT_STATUS_NOT_SUPPORTED; }
>
> Am I right in interpreting that Samba does not support disconnecting
> a lock if it's held by other sessions as well, but not if held for
> writing?
leases are a caching protocol, not related to locks. Lacking a W lease,
if a file a brl when handling a network disconnect, the handle is
closed, not preserved. When attempting a reconnect, the client will get
a STATUS_OBJECT_NAME_NOT_FOUND error. Samba follows Windows behaviour,
iirc this behaviour is deeply burried in MS-FSA.
Having said that, why does the client disconnect in the first place?
Maybe it's possible to find the cause for that and address it.
-slow
--
Join us for the 25th sambaXP 2026 conference
April 20th & 21th, 2026 at Hotel Freizeit In
sponsored by TranquilIT & Microsoft & SerNet
Ticketing & more Info at https://sambaxp.org
SerNet Samba Team Lead https://sernet.de/
Samba Team PLC https://samba.org/
Support and Development https://samba.plus/services/
SAMBA+ packages https://samba.plus/products/samba
-------------- next part --------------
A non-text attachment was scrubbed...
Name: OpenPGP_signature.asc
Type: application/pgp-signature
Size: 840 bytes
Desc: OpenPGP digital signature
URL: <http://lists.samba.org/pipermail/samba-technical/attachments/20260127/6263ce02/OpenPGP_signature.sig>
More information about the samba-technical
mailing list