]> git.ipfire.org Git - thirdparty/grub.git/commit
btrfs: Make more generic the code for RAID 6 rebuilding
authorGoffredo Baroncelli <kreijack@inwind.it>
Mon, 22 Oct 2018 17:29:38 +0000 (19:29 +0200)
committerDaniel Kiper <daniel.kiper@oracle.com>
Wed, 31 Oct 2018 11:07:29 +0000 (12:07 +0100)
commitfa926cb4b4de062233827d8d24ff61e8e39f5ffc
treea4c5495765cb0919ca81e370b44eae508817be5c
parent94854d9c3d6f02820fb621692463e08cbe284ab0
btrfs: Make more generic the code for RAID 6 rebuilding

The original code which handles the recovery of a RAID 6 disks array
assumes that all reads are multiple of 1 << GRUB_DISK_SECTOR_BITS and it
assumes that all the I/O is done via the struct grub_diskfilter_segment.
This is not true for the btrfs code. In order to reuse the native
grub_raid6_recover() code, it is modified to not call
grub_diskfilter_read_node() directly, but to call an handler passed
as an argument.

Signed-off-by: Goffredo Baroncelli <kreijack@inwind.it>
Reviewed-by: Daniel Kiper <daniel.kiper@oracle.com>
grub-core/disk/raid6_recover.c
include/grub/diskfilter.h