Re: [PATCH 01/19] btrfs: require at least 4 devices for RAID 6

From
David Sterba <hidden>
Date
2026-05-15 14:52:02
Also in
linux-arch, linux-arm-kernel, linux-btrfs, linux-crypto, linux-raid, linux-riscv, linux-s390, lkml, loongarch
Reply to
H. Peter Anvin, 2026-05-14
On Thu, May 14, 2026 at 12:57:53PM -0700, H. Peter Anvin wrote:
On May 14, 2026 12:51:59 PM PDT, Goffredo Baroncelli [off-list ref] wrote:
quoted
On 13/05/2026 07.47, Christoph Hellwig wrote:
quoted
On Tue, May 12, 2026 at 01:42:31PM +0200, David Sterba wrote:
quoted
quoted
The degenerate modes of
raid0, 5, or 6 are explicit as a possible middle step when converting
profiles.  We can use a fallback implementation for this case if the
accelerated implementations cannot do it.
This is not about a degenerated mode.  For a degenerated RAID 6, parity
generation uses the RAID 5 XOR routines as the second parity will be
missing.  This is about generating two parities for a single data disk,
which must be explicitly selected.
I think that the David concern is : "what happens for an already
existing btrfs raid6 3 disks filesystem when the user upgrade the kernel ?"
(I am thinking when a new BG needs to be allocated)...
That's what I'm saying – it should invoke the RAID-1 code under the cover (as with 3 disks, D = P = Q.)
Thanks, it was not clear to me what you meant. For the two edge cases
the code should do simple memcpy for both calculations of parity and
recovery.
Thread (37 messages) 37 messages, 10 authors, last reply 2026-06-26
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help