News for hackers. Stuff that matters.
Re:File Locks on Linux by renewiltord on Tuesday May 09, 2023 @07:53PM (#35881870)
All the peculiarities of NFS actually made it so operationally it is optimal for us to just have the NFS server be incredibly dumb. All the action is on clients. Modern Linux permits xattr and flock over NFS so everything will work out so long as you use precisely one kind of lock over NFS and do your xattrs over NFS as well.

Honestly, it would be pretty nice to have some sort of path locking and an ability to request delegation on NFS rather than have it be this automatic conflict-resolution style. But whatever, ultimately it works.

Re:File Locks on Linux by chasil on Tuesday May 09, 2023 @09:53PM (#35882693)
The NFSv4 client is not dumb, as it implements delegations and can recall them from a client after they are granted.

Unlinking a file over NFS has also been implemented as renaming to a temporary file, so slight of hand intelligence was present in earlier versions.

Re:File Locks on Linux by bombcar on Tuesday May 09, 2023 @10:41PM (#35883028)
NFS has so many stupid warts that I often just use samba to share between Linux servers and feel bad about it.