Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Sun, 15 Jul 2001 09:41:23 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Sun, 15 Jul 2001 09:41:12 -0400 Received: from humbolt.nl.linux.org ([131.211.28.48]:26898 "EHLO humbolt.nl.linux.org") by vger.kernel.org with ESMTP id ; Sun, 15 Jul 2001 09:40:53 -0400 Content-Type: text/plain; charset=US-ASCII From: Daniel Phillips To: Chris Wedgwood Subject: Re: [PATCH] 64 bit scsi read/write Date: Sun, 15 Jul 2001 15:44:14 +0200 X-Mailer: KMail [version 1.2] Cc: Alan Cox , Andrew Morton , Andreas Dilger , "Albert D. Cahalan" , Ben LaHaise , Ragnar Kjxrstad , linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org, mike@bigstorage.com, kevin@bigstorage.com, linux-lvm@sistina.com In-Reply-To: <0107142211300W.00409@starship> <20010715153607.A7624@weta.f00f.org> In-Reply-To: <20010715153607.A7624@weta.f00f.org> MIME-Version: 1.0 Message-Id: <01071515442400.05609@starship> Content-Transfer-Encoding: 7BIT Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org On Sunday 15 July 2001 05:36, Chris Wedgwood wrote: > On Sat, Jul 14, 2001 at 10:11:30PM +0200, Daniel Phillips wrote: > > Atomic commit. The superblock, which references the updated > version of the filesystem, carries a sequence number and a > checksum. It is written to one of two alternating locations. On > restart, both locations are read and the highest numbered > superblock with a correct checksum is chosen as the new > filesystem root. > > Yes... and which ever part of the superblock contains the sequence > number must be written atomically. The only requirement here is that the checksum be correct. And sure, that's not a hard guarantee because, on average, you will get a good checksum for bad data once every 4 billion power events that mess up the final superblock transfer. Let me see, if that happens once a year, your data should still be good when the warrantee on the sun expires. :-) > The point is, you _NEED_ to be sure that data written before the > superblock (or indeed anywhere further up the tree, you can make > changes in theory which don't require super-block updates) are > written firmly to the platters before any thing which refers to it is > updated. Since the updated tree is created non-destructively with respect to the original tree, the only priority relationship that matters is the requirement that all blocks of the updated tree be securely committed before the new superblock is written. > Alan was saying with IDE you cannot reliably do this, I assume you > can with SCSI was my point. Surely it can't be that *all* IDE disks can fail in that way? And it seems the jury is still out on SCSI, I'm interested to see where that discussion goes. -- Daniel - 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/