Re: [PATCH] pass kernel command line as verbatim

2018-05-11 Thread Michael Chang
On Wed, May 09, 2018 at 03:23:56PM +0200, Daniel Kiper wrote: > On Thu, Apr 26, 2018 at 04:42:30PM +0800, Michael Chang wrote: > > On Tue, Apr 24, 2018 at 12:03:21PM +0200, Daniel Kiper wrote: > > > On Wed, Apr 18, 2018 at 03:07:15PM +0800, Michael Chang wrote: > > > > On Tue, Apr 17, 2018 at 06:37

[PATCH] Enable /dev/mapper/dm-[0-9]-* scanning

2018-05-11 Thread Oleg Solovyov
Thanks for review New version is attached From 19e3f13632a20a0b1be12b6d6ff4c52ba4f3b4d6 Mon Sep 17 00:00:00 2001 From: Oleg Solovyov Date: Fri, 11 May 2018 13:55:46 +0300 Subject: [PATCH] Don't skip /dev/mapper/dm-* devices This patch ensures that grub-probe will find the root device placed in /d

FTDI serial console support?

2018-05-11 Thread Petter Gustad
Is there a way to specify a FTDI based serial console using GRUB_TERMINAL, GRUB_SERIAL_COMMAND, or some other variable? If yes, what is the syntax? BTW my serial port adapter matches the vendor id and device id given in grub-core/bus/usb/serial/ftdi.c: Bus 001 Device 008: ID 0403:6001 Future Tec

[PATCH 8/8] Add raid6 recovery for a btrfs filesystem.

2018-05-11 Thread Goffredo Baroncelli
Add the raid6 recovery, in order to use a raid6 filesystem even if some disks (up to two) are missing. This code use the old md raid6 code already present in grub. Signed-off-by: Goffredo Baroncelli --- grub-core/fs/btrfs.c | 43 +++ 1 file changed, 39 ins

[PATCH 5/8] Refactor the code that read from disk

2018-05-11 Thread Goffredo Baroncelli
This is a preparatory patch, to help the adding of the raid5/6 recovery code. In case of availability of all disks, this code is good for all the RAID profiles. However in case of failure, the error handling is quite different. Refactoring this code increases the general readability. Signed-off-by

[PATCH 3/8] Move the error logging logic from find_device() to the callee.

2018-05-11 Thread Goffredo Baroncelli
This is a preparatory patch. The callee knows better if this error is fatal, or if it exists another available disk. Signed-off-by: Goffredo Baroncelli --- grub-core/fs/btrfs.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/grub-core/fs/btrfs.c b/grub-core/fs/btrfs.c

[PATCH 1/8] Add support for reading a filesystem with a raid5 or raid6 profile.

2018-05-11 Thread Goffredo Baroncelli
Signed-off-by: Goffredo Baroncelli --- grub-core/fs/btrfs.c | 61 1 file changed, 61 insertions(+) diff --git a/grub-core/fs/btrfs.c b/grub-core/fs/btrfs.c index be195448d..7e287d0ec 100644 --- a/grub-core/fs/btrfs.c +++ b/grub-core/fs/btrfs.c @@ -119

[PATCH 2/8] Add helper to check the btrfs header.

2018-05-11 Thread Goffredo Baroncelli
This helper was used in few places to help the debugging. As conservative approach, in case of error it is only logged. This because I was unaware if this could change something the error handling of the previous code. Signed-off-by: Goffredo Baroncelli --- grub-core/fs/btrfs.c | 24

[PATCH 6/8] Add support for recovery for a raid5 btrfs profiles.

2018-05-11 Thread Goffredo Baroncelli
Signed-off-by: Goffredo Baroncelli --- grub-core/fs/btrfs.c | 178 +-- 1 file changed, 173 insertions(+), 5 deletions(-) diff --git a/grub-core/fs/btrfs.c b/grub-core/fs/btrfs.c index fc4198e39..8d72607d1 100644 --- a/grub-core/fs/btrfs.c +++ b/grub-core/f

[PATCH 7/8] Make more generic the code for raid6 rebuilding

2018-05-11 Thread Goffredo Baroncelli
The original grub code which handles the recovery of a raid6 disks array assumes that all the read are multiple of 1 << GRUB_DISK_SECTOR_BITS and it also 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_r

[PATCH V2] Add support for BTRFS raid5/6 to GRUB

2018-05-11 Thread Goffredo Baroncelli
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 fo

[PATCH V3] Add support for BTRFS raid5/6 to GRUB

2018-05-11 Thread Goffredo Baroncelli
I was wrong this is the V3 patches set ; the subject is wrong. Sorry for the inconvenient. On 05/11/2018 09:24 PM, Goffredo Baroncelli wrote: > 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 suppo

[PATCH V3] Add support for BTRFS raid5/6 to GRUB

2018-05-11 Thread Goffredo Baroncelli
I was wrong this is the V3 patches set ; the subject is wrong. Sorry for the inconvenient. On 05/11/2018 09:24 PM, Goffredo Baroncelli wrote: > 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 suppo