Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753946AbYLAU6z (ORCPT ); Mon, 1 Dec 2008 15:58:55 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751474AbYLAU6p (ORCPT ); Mon, 1 Dec 2008 15:58:45 -0500 Received: from www.church-of-our-saviour.ORG ([69.25.196.31]:58113 "EHLO thunker.thunk.org" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751352AbYLAU6o (ORCPT ); Mon, 1 Dec 2008 15:58:44 -0500 Date: Mon, 1 Dec 2008 15:58:28 -0500 From: Theodore Tso To: Eric Sandeen Cc: Christoph Hellwig , Harald Arnesen , linux-kernel@vger.kernel.org, linux-ext4@vger.kernel.org Subject: Re: [ext4] Documentation patch Message-ID: <20081201205828.GA20069@mit.edu> Mail-Followup-To: Theodore Tso , Eric Sandeen , Christoph Hellwig , Harald Arnesen , linux-kernel@vger.kernel.org, linux-ext4@vger.kernel.org References: <8763m3u9kv.fsf@basilikum.skogtun.org> <20081201165700.GA26680@infradead.org> <493425DC.1010008@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <493425DC.1010008@redhat.com> User-Agent: Mutt/1.5.17+20080114 (2008-01-14) X-SA-Exim-Connect-IP: X-SA-Exim-Mail-From: tytso@mit.edu X-SA-Exim-Scanned: No (on thunker.thunk.org); SAEximRunCond expanded to false Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2169 Lines: 43 On Mon, Dec 01, 2008 at 11:58:52AM -0600, Eric Sandeen wrote: > Christoph Hellwig wrote: > > On Mon, Dec 01, 2008 at 05:46:56PM +0100, Harald Arnesen wrote: > >> So when comparing with a metadata-only journalling filesystem, such > >> - as ext3, use `mount -o data=writeback'. And you might as well use > >> + as jfs or xfs, use `mount -o data=writeback'. And you might as well use > > > > data=ordered comes closest to what xfs does for quite a long time.. > > Agreed; that whole bit which mentions other filesystem comparisons > should probably be stricken, unless it can be > proven/demonstrated/substantiated that ext3 really does "offer higher > data integrity guarantees than most" at this point. > > data=ordered ensures that stale data won't be exposed on a crash; xfs > won't do this (it'd be a security bug) and I'd be surprised if jfs or > reiserfs do either. And it probably *should* be mentioned that > data=writeback bears this risk. Well, the original text was written by David Kleikamp, so it might be the case that jfs doesn't handle the stale data block case well. I haven't checked. However, the sense of that paragraph got mangled badly in commit 93e3270c, and what's there clearly doesn't make any sense. I agree the best thing to do is to nuke that whole paragraph. The one thing that's worth mentioning (as a replacement paragraph) is that ext4 (and many other filesystems) has barreiers on by default, and ext3 has barriers off by default, so that's something that should be taken into account when doing head-to-head comparisons. - Ted P.S. Speaking of barriers, there was a rumor floating around that someone was working on patches so at least in the case of RAID 0 and RAID 1, that the LVM and MD stack would actually pass barier requests down to the block device layer. Whatever happened to that? Is that bug in the LVM layer going to get fixed any time soon? -- 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/