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

Ralph Boehme slow at samba.org
Wed Jan 25 06:22:58 UTC 2023


On 1/24/23 22:58, Michael Tokarev via samba wrote:
> Yes. I know the concepts, I understand quite well how they works.
> I wrote a wiki page about it yesterday. They're definitely separate
> in my mind :)
> 
> What I mean is that inotify mechanism can be used by smbd to at
> least tell windows that the lease/oplock should be broken now.

no, as that doesn't block the oplock/lease contender until the 
oplock/lease holder had the time to flush his changes. It might be 
possible to us fanotify() with FAN_OPEN_PERM, but that's a story for 
another day.

-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/20230125/e74e3a7b/OpenPGP_signature.sig>


More information about the samba mailing list