From: Arjan van de Ven Subject: Re: sync() in 2.4.24 Date: Tue, 21 Nov 2006 09:09:25 +0100 Message-ID: <1164096566.31358.632.camel@laptopd505.fenrus.org> References: <014201c70d07$1e337750$c68a47c7@nanometrics.ca> Mime-Version: 1.0 Content-Type: text/plain Content-Transfer-Encoding: 7bit Cc: linux-fsdevel@vger.kernel.org Return-path: Received: from pentafluge.infradead.org ([213.146.154.40]:1228 "EHLO pentafluge.infradead.org") by vger.kernel.org with ESMTP id S1030742AbWKUIJ2 (ORCPT ); Tue, 21 Nov 2006 03:09:28 -0500 To: Steven Faludi In-Reply-To: <014201c70d07$1e337750$c68a47c7@nanometrics.ca> Sender: linux-fsdevel-owner@vger.kernel.org List-Id: linux-fsdevel.vger.kernel.org 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