Hello Following up this: http://www.h-online.com/open/Ext4-data-loss-explanations-and-workarounds --/news/112892 It seems ext4fs people do not assume that closing a file will make the data flushed to disk. It is claimed fsync(2) should be called first. The standards say "Any unwritten buffered data for the stream shall be written to the file" on a fclose(3) call: http://www.opengroup.org/onlinepubs/000095399/functions/fclose.html I may be missing something, but I have the feeling this behavior is a standard violation. However, milter-greylist does not run on a standard, it runs on actual implementation, so we may need a fix for it. Request for comments: do we need to modify our Fclose() macro so that it calls fsync() before fclose() on Linux? Is it useful? Can it harm? -- Emmanuel Dreyfus http://hcpnet.free.fr/pubz manu@...
Message
ext4fs reliability bug
2009-03-20 by manu@netbsd.org
Attachments
- No local attachments were found for this message.