Re: sync() in 2.4.24

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, 2006-11-20 at 19:50 -0500, Steven Faludi wrote:
> 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.

-- 
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



-
To unsubscribe from this list: send the line "unsubscribe linux-fsdevel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Ext4 Filesystem]     [Union Filesystem]     [Filesystem Testing]     [Ceph Users]     [Ecryptfs]     [AutoFS]     [Kernel Newbies]     [Share Photos]     [Security]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux Cachefs]     [Reiser Filesystem]     [Linux RAID]     [Samba]     [Device Mapper]     [CEPH Development]
  Powered by Linux