Received: from list by lists.gnu.org with archive (Exim 4.71) id 1fHEw3-0006tm-M4 for mharc-grub-devel@gnu.org; Fri, 11 May 2018 16:46:39 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:43212) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fHEAX-000764-A2 for grub-devel@gnu.org; Fri, 11 May 2018 15:57:34 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fHEAU-0001CW-6U for grub-devel@gnu.org; Fri, 11 May 2018 15:57:33 -0400 Received: from smtp-33-i6.italiaonline.it ([213.209.14.33]:60368 helo=libero.it) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1fHEAU-0000y5-0K for grub-devel@gnu.org; Fri, 11 May 2018 15:57:30 -0400 Received: from venice.bhome ([94.38.18.100]) by smtp-33.iol.local with SMTP id HEATfFXc7gMjOHEATf5LXv; Fri, 11 May 2018 21:57:29 +0200 x-libjamoibt: 1601 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=libero.it; s=s2014; t=1526068649; bh=EBtJnbWeFay1/tsNjgyljMbS8z0k9DhpEhHXWWlqGo4=; h=Reply-To:Subject:To:References:From:Cc:Date:In-Reply-To; b=m5p06/65V5fdrxJMxtaBEq8dnUoeacJEJU6Eu6Q8e6UyCtAqXZfEZ1c4ce+umWrmt Hr8qKeYacpBx092Nm6enR+wWe+GR8R+cwq12MhMXrXRh8xbZvEz8nUaLkRKU8bu+8z bkCiGGSOkZrKSSNa2iyJ53DzAKP0F6WDm86s5tkvIsPclMpAu1ZBsJY/rP7Tqvnu8I tTLYPnhhs4i76MuIkkDVpTZF6f7KhGd8rba+ESfeP/O/uOtmRTWjzBqSVUVtTz8JPM isk8wZ2yTTzr7AQDfwbnZm250OQvj6ZWnugsC252ULUCYfIBe8a4RJ/5IiL3UXS4dH N2EY+vrT79M/Q== X-CNFS-Analysis: v=2.2 cv=LflM0nXi c=1 sm=1 tr=0 a=4LoCrcBMRqL4odG3ybmcaQ==:117 a=4LoCrcBMRqL4odG3ybmcaQ==:17 a=IkcTkHD0fZMA:10 a=jXwKZe5OvfTQcHNxxy8A:9 a=QEXdDO2ut3YA:10 Reply-To: kreijack@inwind.it Subject: [PATCH V3] Add support for BTRFS raid5/6 to GRUB To: Daniel Kiper References: <20180511192446.15942-1-kreijack@inwind.it> From: Goffredo Baroncelli Cc: grub-devel@gnu.org Message-ID: <60968602-2bb2-c795-ae0f-461a6079e84e@libero.it> Date: Fri, 11 May 2018 21:57:28 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.7.0 MIME-Version: 1.0 In-Reply-To: <20180511192446.15942-1-kreijack@inwind.it> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit X-CMAE-Envelope: MS4wfFnbv2auUTQd0ZvpWbdiZhp4fVzs9HI5EJUBXsRS8RM+WVdwU7UDYfKDCjWCSJDftjE252w1ofeRZN+Bzx1DQvEJHLdLZ5TbwDgFlxLGx42HDJ3dsg05 zU6iKhaEt+G7mtI8I1rkuWz7FFsB8ncqhw9T8Heaguk74s9LRJsldPuBwpG6c09aDsHAvJqrz0CTww== X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [fuzzy] X-Received-From: 213.209.14.33 X-Mailman-Approved-At: Fri, 11 May 2018 16:46:38 -0400 X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: The development of GNU GRUB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 11 May 2018 19:57:34 -0000 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 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 > > -- gpg @keyserver.linux.it: Goffredo Baroncelli Key fingerprint BBF5 1610 0B64 DAC6 5F7D 17B2 0EDA 9B37 8B82 E0B5