From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 54A35C433EF for ; Wed, 25 May 2022 09:27:04 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234236AbiEYJ06 (ORCPT ); Wed, 25 May 2022 05:26:58 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40670 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231416AbiEYJ04 (ORCPT ); Wed, 25 May 2022 05:26:56 -0400 Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:3::133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 81D0E7B9C1 for ; Wed, 25 May 2022 02:26:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=In-Reply-To:Content-Transfer-Encoding :Content-Type:MIME-Version:References:Message-ID:Subject:Cc:To:From:Date: Sender:Reply-To:Content-ID:Content-Description; bh=Nl8nhcN7CkhuQSEhJeJBuqim9EKg5sfFVPS38DnRoNU=; b=IYPJ6yMKOsaXt4Q4g8NhKi5qBG NskIKsMyD32eXjh07fuIodt5WKXSaMS9V9SJ9eIgvwFJaBhPGFOUp9OpGmLHUXHl/iWQJdjta/IoY rquAk5VC0XPCLMHtSj45gOnbcrReV0M2NprLHkJ+CMw3L0CidwZNSrD9j/87n6euICM8SiQoPcE2i avoRGLWvxddKwEqzZBrXx96tI1eAt2oM7th3eUl4Fqo2c1WaaGt8m1eEz29J4j8buYgLYOEQwTH8m zlLjf+cNx6PieUr29p3nQMRdacdHP3W/vsUsG+V8FFQhtSkhavz3eAp2LaESmYvPESEGe7EQ/0TVw EC4cz1qw==; Received: from hch by bombadil.infradead.org with local (Exim 4.94.2 #2 (Red Hat Linux)) id 1ntnHx-00Aa6A-Vh; Wed, 25 May 2022 09:26:46 +0000 Date: Wed, 25 May 2022 02:26:45 -0700 From: Christoph Hellwig To: Qu Wenruo Cc: Christoph Hellwig , dsterba@suse.cz, Qu Wenruo , linux-btrfs@vger.kernel.org Subject: Re: [PATCH DRAFT] btrfs: RAID56J journal on-disk format draft Message-ID: References: <20220524170234.GW18596@twin.jikos.cz> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: X-SRS-Rewrite: SMTP reverse-path rewritten from by bombadil.infradead.org. See http://www.infradead.org/rpr.html Precedence: bulk List-ID: X-Mailing-List: linux-btrfs@vger.kernel.org On Wed, May 25, 2022 at 05:13:11PM +0800, Qu Wenruo wrote: > The problem is, we can have partial write for RAID56, no matter if we > use NODATACOW or not. > > For example, we have a very typical 3 disks RAID5: > > 0 32K 64K > Disk 1 |DDDDDDD| | > Disk 2 |ddddddd|ddddddd| > Disk 3 |PPPPPPP|PPPPPPP| > > > D = old data, it's there for a while. > d = new data, we want to write. Oh. I keep forgetting that the striping is entirely on the physіcal block basis and not logic block basis. Which makes the whole idea of btrfs integrated raid5/6 not all that useful compared to just using mdraid :(