Thread (29 messages) flat view 29 messages, 5 authors, 2021-04-11

Re: [PATCH v4] flock.2: add CIFS details

From: Pavel Shilovsky <hidden>
Date: 2021-03-15 18:06:44
Also in: linux-fsdevel, linux-man

чт, 11 мар. 2021 г. в 14:41, Aurélien Aptel [off-list ref]:


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
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help