Re:“POSIX advisory locks are broken by design”
by amerianwookie on Tuesday July 24, 2018 @06:34PM
(#17605485)
I was under the impression that since[1] 2.6.12, when using BSD flock(), NFS will use POSIX locks that emulate BSD locking behavior and work over NFS. So long as you use consistent NFS implementations, shouldn't this work?
This LWN article has a great explanation of all the behaviors: https://lwn.net/Articles/586904/
[1] Effectively identical to the Linux extension/POSIX proposal except that (1) they don't support ranges, (2) don't contend with POSIX locks (they do on real BSDs but not Linux), and (3) BSD flock won't work across NFS.