Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1761390AbXEQAsj (ORCPT ); Wed, 16 May 2007 20:48:39 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1756359AbXEQAs3 (ORCPT ); Wed, 16 May 2007 20:48:29 -0400 Received: from ns2.suse.de ([195.135.220.15]:39672 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755753AbXEQAs2 (ORCPT ); Wed, 16 May 2007 20:48:28 -0400 From: Neil Brown To: "Jeff Zheng" Date: Thu, 17 May 2007 10:48:02 +1000 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <17995.42562.870806.396617@notabene.brown> Cc: "Michal Piotrowski" , "Ingo Molnar" , , , Subject: RE: Software raid0 will crash the file-system, when each disk is 5TB In-Reply-To: message from Jeff Zheng on Wednesday May 16 References: <659F626D666070439A4A5965CD6EBF406836C6@gazelle.ad.endace.com> <6bffcb0e0705151629j78920ca2r9337dccdfc1bb6a9@mail.gmail.com> <17994.19043.771733.453896@notabene.brown> <659F626D666070439A4A5965CD6EBF406B31C5@gazelle.ad.endace.com> X-Mailer: VM 7.19 under Emacs 21.4.1 X-face: [Gw_3E*Gng}4rRrKRYotwlE?.2|**#s9D Here is the information of the created raid0. Hope it is enough. Thanks. Everything looks fine here. The only difference of any significance between the working and non-working configurations is that in the non-working, the component devices are larger than 2Gig, and hence have sector offsets greater than 32 bits. This does cause a slightly different code path in one place, but I cannot see it making a difference. But maybe it does. What architecture is this running on? What C compiler are you using? Can you try with this patch? It is the only thing that I can find that could conceivably go wrong. Thanks, NeilBrown Signed-off-by: Neil Brown ### Diffstat output ./drivers/md/raid0.c | 1 + 1 file changed, 1 insertion(+) diff .prev/drivers/md/raid0.c ./drivers/md/raid0.c --- .prev/drivers/md/raid0.c 2007-05-17 10:33:30.000000000 +1000 +++ ./drivers/md/raid0.c 2007-05-17 10:34:02.000000000 +1000 @@ -461,6 +461,7 @@ static int raid0_make_request (request_q while (block >= (zone->zone_offset + zone->size)) zone++; + BUG_ON(block < zone->zone_offset); sect_in_chunk = bio->bi_sector & ((chunk_size<<1) -1); - 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/