чт, 11 мар. 2021 г. в 14:41, Aurélien Aptel <aaptel@xxxxxxxx>: Hi Aurelien, > > Ok, then I agree with your last paragraph. Here's the current version, with semantic newlines: > > In Linux kernels up to 5.4, flock() is not propagated over SMB. > A file with such locks will not appear locked for remote clients. > > Since Linux 5.5, flock() locks are emulated with SMB byte-range locks on the entire file. > Similarly to NFS, this means that fcntl(2) and flock() locks interact with one another. > Another important side-effect is that the locks are not advisory anymore: > a write on a locked file will always fail with EACCES. It is not only about writing to a locked file. It is also about any IO against a locked file if such a file is locked through another file handle. Right? -- Best regards, Pavel Shilovsky