Re:File Locks on Linux
by marcosdumay on Wednesday May 10, 2023 @12:41PM
(#35889846)
Doesn't it all just solve itself if you let the original data unused and mount the root of all those file servers through NFS?
You don't need the extreme of not running anything else on the server. You just need to not get it access to the original files.
Re:File Locks on Linux
by cryptonector on Wednesday May 10, 2023 @02:23PM
(#35891292)
Sort of. Suppose you want to run Samba or WebDAV or whatever to export the same filesystems over something other than NFS. You could export remote shares, I suppose, but the obvious thing to do is to export local filesystems on the server, but now if smbd or whatever wants to use flock(), you have a problem.
One might say "right, so don't run apps on the file server", but if the file server is running multiple file server protocols some of which want to locally flock(), then you lose unless flocks and POSIX locks are made to conflict.
So either rip out this feature of the NFS client on Linux or make local flock locks and POSIX locks conflict at the very least if the filesystem is shared via NFS.