Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753287AbZIAIjL (ORCPT ); Tue, 1 Sep 2009 04:39:11 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1753077AbZIAIjK (ORCPT ); Tue, 1 Sep 2009 04:39:10 -0400 Received: from cantor.suse.de ([195.135.220.2]:57562 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752819AbZIAIjJ (ORCPT ); Tue, 1 Sep 2009 04:39:09 -0400 From: "NeilBrown" To: "George Spelvin" Date: Tue, 1 Sep 2009 18:36:22 +1000 (EST) Message-ID: <4a2c5faeb04cab59af9ba6ab512c9916.squirrel@neil.brown.name> In-Reply-To: <20090901005629.3932.qmail@science.horizon.com> References: <20090901005629.3932.qmail@science.horizon.com> Subject: Re: raid is dangerous but that's secret (was Re: [patch] ext2/3: Cc: david@lang.hm, pavel@ucw.cz, linux-doc@vger.kernel.org, linux-ext4@vger.kernel.org, linux-kernel@vger.kernel.org, linux@horizon.com User-Agent: SquirrelMail/1.4.15 MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7BIT X-Priority: 3 (Normal) Importance: Normal Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1024 Lines: 22 On Tue, September 1, 2009 10:56 am, George Spelvin wrote: > The fact that the ZFS decelopers observed drives writing the data to the > wrong location emphasizes the importance of keeping the checksum with > the pointer. An embedded checksum, no matter how good, can't tell you if > the data is stale; you need a way to distinguish versions in the pointer. I would disagree with that. If the embedded checksum is a function of both the data and the address of the data (in whatever address space seems most appropriate) then it can still verify that the data found with the checksum is the data that was expected. And storing the checksum with the data (where it is practical) means index blocks can be more dense so on average fewer accesses to storage are needed. NeilBrown -- 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/