Received: from list by lists.gnu.org with archive (Exim 4.71) id 1fdcmv-0005mq-Hs for mharc-grub-devel@gnu.org; Thu, 12 Jul 2018 10:41:45 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:52720) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fdcmt-0005mh-99 for grub-devel@gnu.org; Thu, 12 Jul 2018 10:41:44 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fdcmq-00038W-6T for grub-devel@gnu.org; Thu, 12 Jul 2018 10:41:43 -0400 Received: from boksu.net-space.pl ([185.15.1.105]:55075) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_3DES_EDE_CBC_SHA1:24) (Exim 4.71) (envelope-from ) id 1fdcmp-00036F-Qj for grub-devel@gnu.org; Thu, 12 Jul 2018 10:41:40 -0400 Received: (from localhost user: 'dkiper' uid#4000 fake: STDIN (dkiper@boksu.net-space.pl)) by router-fw-old.local.net-space.pl id S1851140AbeGLOlh (ORCPT ); Thu, 12 Jul 2018 16:41:37 +0200 Date: Thu, 12 Jul 2018 16:41:37 +0200 From: Daniel Kiper To: The development of GNU GRUB Cc: Goffredo Baroncelli Subject: Re: [PATCH 8/9] btrfs: Make more generic the code for RAID 6 rebuilding Message-ID: <20180712144137.GH7005@router-fw-old.local.net-space.pl> References: <20180619173956.7356-1-kreijack@inwind.it> <20180619173956.7356-9-kreijack@inwind.it> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180619173956.7356-9-kreijack@inwind.it> User-Agent: Mutt/1.3.28i X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 185.15.1.105 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: Thu, 12 Jul 2018 14:41:44 -0000 On Tue, Jun 19, 2018 at 07:39:55PM +0200, Goffredo Baroncelli wrote: > 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 Reviewed-by: Daniel Kiper Daniel