Re:Appending to a file from multiple processes
by fnord123 on Wednesday August 03, 2016 @06:06PM
(#12221927)
Writes to files less than PIPE_BUF aren't atomic on parallel file systems. e.g. Panasas, Lustre, GPFS, etc.
[ Parent
| on HN ]
Re:Appending to a file from multiple processes
by fnord123 on Friday August 05, 2016 @08:21PM
(#12236486)
Clarification: writes to files less than PIPE_BUFF may be atomic, but they aren't necessarily consistent. This is another important property as you want reads following writes to always have the written values. I think I tripped up over myself since in atomicity you expect the 'all written' and 'nothing written' states, but there's also 'all written but nothing visible' which is a third state which feels like it's part of atomicity, but I guess it's really part of consistency.