Not logged in
Log in now
Create an account
Subscribe to LWN
LWN.net Weekly Edition for May 23, 2013
An "enum" for Python 3
An unexpected perf feature
LWN.net Weekly Edition for May 16, 2013
A look at the PyPy 2.0 release
fsync and scripts
Posted Apr 8, 2009 1:49 UTC (Wed) by mjg59 (subscriber, #23239)
Posted Apr 8, 2009 13:33 UTC (Wed) by vaurora (guest, #38407)
According to the standard specification (e.g., POSIX.1-2001), sync() schedules the writes,
but may return before the actual writing is done. However, since version 1.3.20 Linux
does actually wait. (This still does not guarantee data integrity: modern disks have
Posted Apr 8, 2009 13:44 UTC (Wed) by mjg59 (subscriber, #23239)
Posted Apr 14, 2009 7:10 UTC (Tue) by dlang (✭ supporter ✭, #313)
so sync was not enough sync;sync would do the job, but sync;sync;sync is what people ended up using.
this could be yet another myth, but it seems to match the facts that I have run across on the topic
Copyright © 2013, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds