LWN.net Logo

Postponing flush until close()?

Postponing flush until close()?

Posted Mar 19, 2009 23:34 UTC (Thu) by xoddam (subscriber, #2322)
In reply to: Postponing flush until close()? by xoddam
Parent article: Better than POSIX?

Sorry, I just read the patch. If a file has been opened with O_TRUNC then it will indeed be flushed (early) when closed. The race condition still exists of course, but flushing on close will keep the risky interval relatively short in the vast majority of cases.


(Log in to post comments)

Copyright © 2013, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds