Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S262978AbUCRVQ4 (ORCPT ); Thu, 18 Mar 2004 16:16:56 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S262976AbUCRVQw (ORCPT ); Thu, 18 Mar 2004 16:16:52 -0500 Received: from ns.suse.de ([195.135.220.2]:19082 "EHLO Cantor.suse.de") by vger.kernel.org with ESMTP id S262973AbUCRVQr (ORCPT ); Thu, 18 Mar 2004 16:16:47 -0500 Subject: Re: True fsync() in Linux (on IDE) From: Chris Mason To: Peter Zaitsev Cc: Jens Axboe , Linux Kernel In-Reply-To: <1079644190.2450.405.camel@abyss.local> References: <1079572101.2748.711.camel@abyss.local> <20040318064757.GA1072@suse.de> <1079639060.3102.282.camel@abyss.local> <20040318194745.GA2314@suse.de> <1079640699.11062.1.camel@watt.suse.com> <1079641026.2447.327.camel@abyss.local> <1079642001.11057.7.camel@watt.suse.com> <1079642801.2447.369.camel@abyss.local> <1079643740.11057.16.camel@watt.suse.com> <1079644190.2450.405.camel@abyss.local> Content-Type: text/plain Message-Id: <1079644743.11055.26.camel@watt.suse.com> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.4.5 Date: Thu, 18 Mar 2004 16:19:03 -0500 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 889 Lines: 24 On Thu, 2004-03-18 at 16:09, Peter Zaitsev wrote: > On Thu, 2004-03-18 at 13:02, Chris Mason wrote: > > > > In the former case cache is surely not flushed. > > > > > Hmmm, is it reiser? For both 2.4 reiserfs and ext3, the flush happens > > when you commit. ext3 always commits on fsync and reiser only commits > > when you've changed metadata. > > Oh. Yes. This is Reiser, I did not think it is FS issue. > I'll know to stay away from ReiserFS now. For reiserfs data=ordered should be enough to trigger the needed commits. If not, data=journal. Note that neither fs does barriers for O_SYNC, so we're just not perfect in 2.4. -chris - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/