Rowland Penny
2023-Jan-20 09:21 UTC
[Samba] oplocks, kernel oplocks, kernel share modes, .. - how it all works?
On 20/01/2023 09:10, Michael Tokarev via samba wrote:> Hi! > > I'm trying to understand how various ways to grant a file lease to > (windows) clients > works. Especially in context when files are being modified locally on > the linux > filesystem. >I didn't bother reading further, because you shouldn't locally modify files on a Samba share. This is because Samba has no way of knowing that said files have been modified locally. Rowland
Michael Tokarev
2023-Jan-20 09:40 UTC
[Samba] oplocks, kernel oplocks, kernel share modes, .. - how it all works?
20.01.2023 12:21, Rowland Penny via samba wrote:> you shouldn't locally modify files on a Samba share. This is because Samba has no way of knowing that said > files have been modified locally.This defeats the whole purpose of samba as INTEROPERABILITY suite for *nix, to begin with. There are numerous mechanisms exists on linux to know the file has been modified, so the statement about samba having no way of knowing that is wrong. /mjt