3 ms·
Wizardly workarounds for broken APIs persist long after those APIs are fixed. People still avoid things like flock(2) because at one time NFS didn't handle file
by quotemstr 1y ago
Wizardly workarounds for broken APIs persist long after those APIs are fixed. People still avoid things like flock(2) because at one time NFS didn't handle file locking well. CLOCK_MONOTONIC_RAW is fine these days with the vDSO.
- denotational 1y agoSadly GPFS still doesn’t support flock(2), so I still avoid it.
- quotemstr 1y agoDoesn't it? https://sambaxp.org/archive-data-samba/sxp09/SambaXP2009-DATA/Henning_Henkel.pdf https://sambaxp.org/archive-data-samba/sxp09/SambaXP2009-DAT... It would be weird, even for AIX, to support POSIX byte range locks and not the much simpler flock.
- denotational 1y agoIt doesn't, at least on the version I have access to, as it is configured on that cluster. I’m using Linux rather than AIX. fcntl(2) locks are supported (as long as they aren't OFD), but flock(2) locks don't work across nodes.