[Samba] oplocks, kernel oplocks, kernel share modes, .. - how it all works?

Michael Tokarev mjt at tls.msk.ru
Tue Jan 24 17:14:52 UTC 2023

24.01.2023 20:09, Jeremy Allison via samba wrote:
> On Tue, Jan 24, 2023 at 12:38:29PM +0300, Michael Tokarev via samba wrote:
>> Here we've two files open, with kernel oplocks = yes (hence it is LEASE(), -
>> before I enabled kernel oplocks, it was LEASE(RH) or LEASE(RWH)).
> Kernel oplocks do not support SMB2+ LEASES. So you're
> just seeing old SMB1-style oplocks.

Yes, this is exactly what I wrote.

This is not the question though, the question is why kernel oplocks don't
work when they should, or if it is not the case, how it should be?



More information about the samba mailing list