All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH V2] Add support for BTRFS raid5/6 to GRUB
@ 2018-05-11 19:24 Goffredo Baroncelli
  2018-05-11 19:24 ` [PATCH 1/8] Add support for reading a filesystem with a raid5 or raid6 profile Goffredo Baroncelli
                   ` (8 more replies)
  0 siblings, 9 replies; 25+ messages in thread
From: Goffredo Baroncelli @ 2018-05-11 19:24 UTC (permalink / raw)
  To: grub-devel




Hi All,

the aim of this patches set is to provide support for a BTRFS raid5/6
filesystem in GRUB.

The first patch, implements the basic support for raid5/6. I.e this works when
all the disks are present.

The next 4 patches, are preparatory ones.

The 6th patch implements the raid5 recovery for btrfs (i.e. handling the
disappearing of 1 disk).
The 7th patch makes the code for handling the raid6 recovery more generic.
The last one implements the raid6 recovery for btrfs (i.e. handling the
disappearing up to two disks).

I tested the code in grub-emu, and it works (for me) both with all the disks,
and with some disks missing. I checked the crc32 calculated from grub and
from linux and these matched. Finally I checked if the support for md raid6 
still works properly, and it does (with all the drives and with up to 2 drives
missing)

Comments are welcome.

Changelog
v1: initial support for btrfs raid5/6. No recovery allowed
v2: full support for btrfs raid5/6. Recovery allowed
v3: some minor cleanup suggested by Daniel Kiper; reusing the
    original raid6 recovery code of grub


BR
G.Baroncelli



^ permalink raw reply	[flat|nested] 25+ messages in thread

end of thread, other threads:[~2018-05-16 18:48 UTC | newest]

Thread overview: 25+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-05-11 19:24 [PATCH V2] Add support for BTRFS raid5/6 to GRUB Goffredo Baroncelli
2018-05-11 19:24 ` [PATCH 1/8] Add support for reading a filesystem with a raid5 or raid6 profile Goffredo Baroncelli
2018-05-14 17:52   ` Daniel Kiper
2018-05-16 18:48     ` Goffredo Baroncelli
2018-05-11 19:24 ` [PATCH 2/8] Add helper to check the btrfs header Goffredo Baroncelli
2018-05-14 18:07   ` Daniel Kiper
2018-05-11 19:24 ` [PATCH 3/8] Move the error logging logic from find_device() to the callee Goffredo Baroncelli
2018-05-14 18:16   ` Daniel Kiper
2018-05-11 19:24 ` [PATCH 5/8] Refactor the code that read from disk Goffredo Baroncelli
2018-05-14 18:26   ` Daniel Kiper
2018-05-14 18:44     ` Daniel Kiper
2018-05-11 19:24 ` [PATCH 6/8] Add support for recovery for a raid5 btrfs profiles Goffredo Baroncelli
2018-05-14 18:40   ` Daniel Kiper
2018-05-16 18:48     ` Goffredo Baroncelli
2018-05-11 19:24 ` [PATCH 7/8] Make more generic the code for raid6 rebuilding Goffredo Baroncelli
2018-05-14 18:57   ` Daniel Kiper
2018-05-14 19:07     ` Daniel Kiper
2018-05-15 17:23       ` Goffredo Baroncelli
2018-05-14 20:52     ` Goffredo Baroncelli
2018-05-15 12:29       ` Daniel Kiper
2018-05-11 19:24 ` [PATCH 8/8] Add raid6 recovery for a btrfs filesystem Goffredo Baroncelli
2018-05-14 19:06   ` Daniel Kiper
2018-05-16 18:48     ` Goffredo Baroncelli
2018-05-11 19:57 ` [PATCH V3] Add support for BTRFS raid5/6 to GRUB Goffredo Baroncelli
2018-05-11 19:57 ` Goffredo Baroncelli

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.