Jeremy Allison
2023-Jan-24 17:09 UTC
[Samba] oplocks, kernel oplocks, kernel share modes, .. - how it all works?
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.
Michael Tokarev
2023-Jan-24 17:14 UTC
[Samba] oplocks, kernel oplocks, kernel share modes, .. - how it all works?
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? Thanks! /mjt
Reasonably Related Threads
- oplocks, kernel oplocks, kernel share modes, .. - how it all works?
- samba allows rename to a locked file (from linux cifs mount)
- Linux vs. Windows SMB buffering
- Linux vs. Windows SMB buffering
- oplocks, kernel oplocks, kernel share modes, .. - how it all works?