Re: [PATCH] cifs: ignore FL_FLOCK locks in read/write
From: Aurélien Aptel <hidden>
Date: 2021-02-24 11:15:05
Also in:
linux-fsdevel
From: Aurélien Aptel <hidden>
Date: 2021-02-24 11:15:05
Also in:
linux-fsdevel
Pavel Shilovsky [off-list ref] writes:
If a flock is emulated on the server side with mandatory locks (which is what we only have for SMB2 without POSIX extensions) then we should maintain the same logic on the client. Otherwise you get different behavior depending on the caching policies currently in effect on the client side. You may consider testing with both modes when leases/oplocks are on and off.
Hm.. you're right, the write will fail on the server side without cache. I guess we should document current cifs behaviour in the flock man page. Cheers, -- Aurélien Aptel / SUSE Labs Samba Team GPG: 1839 CB5F 9F5B FB9B AA97 8C99 03C8 A49B 521B D5D3 SUSE Software Solutions Germany GmbH, Maxfeldstr. 5, 90409 Nürnberg, DE GF: Felix Imendörffer, Mary Higgins, Sri Rasiah HRB 247165 (AG München)