LWN.net Logo

fsync and scripts

fsync and scripts

Posted Apr 14, 2009 7:10 UTC (Tue) by dlang (✭ supporter ✭, #313)
In reply to: fsync and scripts by mjg59
Parent article: Linux Storage and Filesystem workshop, day 1

I remember reading at one point that on some older systems sync could exit as soon as the fsync started, but if you did sync;sync the second one could not start until the first finished.

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


(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