Ralph Boehme
2023-Jan-24 20:31 UTC
[Samba] oplocks, kernel oplocks, kernel share modes, .. - how it all works?
On 1/24/23 21:23, Jeremy Allison wrote:> If you turn on kernel oplocks = yes, I think you must also > set smb2 leases = no in order for this to work.see "git grep lp_kernel_oplocks". If kernel oplocks are enabled we don't set the leases cap in negport. Something smells fishy here... -slow -- Ralph Boehme, Samba Team https://samba.org/ SerNet Samba Team Lead https://sernet.de/en/team-samba -------------- next part -------------- A non-text attachment was scrubbed... Name: OpenPGP_signature Type: application/pgp-signature Size: 840 bytes Desc: OpenPGP digital signature URL: <http://lists.samba.org/pipermail/samba/attachments/20230124/95639d45/OpenPGP_signature.sig>
Jeremy Allison
2023-Jan-24 21:03 UTC
[Samba] oplocks, kernel oplocks, kernel share modes, .. - how it all works?
On Tue, Jan 24, 2023 at 09:31:06PM +0100, Ralph Boehme wrote:>On 1/24/23 21:23, Jeremy Allison wrote: >>If you turn on kernel oplocks = yes, I think you must also >>set smb2 leases = no in order for this to work. > >see "git grep lp_kernel_oplocks". If kernel oplocks are enabled we >don't set the leases cap in negport. Something smells fishy here...Ah, I did do that grep, but missed that one in source3/smbd/smb2_negprot.c :-). Wonder what client this is ? Maybe it's just ignoring the SMB2_CAP_LEASING flag ?