sync() in 2.4.24
I am trying to use sync() to flush all data to EXT3 and JFFS2 on various media.
Is all data guaranteed to be flushed as far as the kernel is concerned after sync() returns, or do I need to wait/sleep longer?
If sleep is required how long?
Steven Faludi
stevenfaludi at nanometrics dot ca
Quoted 5 lines · Steven Faludi
I am trying to use
sync()to flush all data to EXT3 and JFFS2 on various media.Is all data guaranteed to be flushed as far as the kernel is concerned after
sync()returns, or do I need to wait/sleep longer?
from the man page:
According to the standard specification (e.g., POSIX.1-2001), sync()
schedules the writes, but may return before the actual writ-
ing is done
however the 2.4 kernel will wait until the storage controller has acknowledged it. It will not wait until the storage hw puts it actually on permanent media though; that's something that 2.6 does do.
Signature · 2 lines
if you want to mail me at work (you don't), use arjan (at) linux.intel.com Test the interaction between Linux and your BIOS via http://www.linuxfirmwarekit.org