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

Jeremy Allison jra at samba.org
Tue Jan 24 22:54:21 UTC 2023


On Tue, Jan 24, 2023 at 10:08:01PM +0000, Rowland Penny via samba wrote:
>
>Whilst I can fully understand what you are trying to say, I still 
>think that it is a bad idea to locally modify files on a Samba share. 

+1.

>I also think that what Michael requires is a good thing, it just isn't 
>really possible at this time, perhaps Samba could be enhanced to do 
>it, so it might be an idea to open a bug report so it doesn't get 
>forgotten.

No, this is what the "kernel oplocks" code was designed
to do. I implemented the first version of it when I was
at SGI in the early 2000's. It's just not kept pace with
the improvements in SMB2+ technology and has the caveats
I've already mentioned.



More information about the samba mailing list