Received: from list by lists.gnu.org with archive (Exim 4.71) id 1fdcJD-0002Nt-Ge for mharc-grub-devel@gnu.org; Thu, 12 Jul 2018 10:11:03 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:43565) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fdcJA-0002MK-0e for grub-devel@gnu.org; Thu, 12 Jul 2018 10:11:00 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fdcJ6-00046W-Qs for grub-devel@gnu.org; Thu, 12 Jul 2018 10:10:59 -0400 Received: from boksu.net-space.pl ([185.15.1.105]:55031) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_3DES_EDE_CBC_SHA1:24) (Exim 4.71) (envelope-from ) id 1fdcJ6-000445-GW for grub-devel@gnu.org; Thu, 12 Jul 2018 10:10:56 -0400 Received: (from localhost user: 'dkiper' uid#4000 fake: STDIN (dkiper@boksu.net-space.pl)) by router-fw-old.local.net-space.pl id S1851144AbeGLOKz (ORCPT ); Thu, 12 Jul 2018 16:10:55 +0200 Date: Thu, 12 Jul 2018 16:10:55 +0200 From: Daniel Kiper To: The development of GNU GRUB Cc: Goffredo Baroncelli Subject: Re: [PATCH 6/9] btrfs: Refactor the code that read from disk Message-ID: <20180712141055.GF7005@router-fw-old.local.net-space.pl> References: <20180619173956.7356-1-kreijack@inwind.it> <20180619173956.7356-7-kreijack@inwind.it> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180619173956.7356-7-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:11:01 -0000 On Tue, Jun 19, 2018 at 07:39:53PM +0200, Goffredo Baroncelli wrote: > Move the code in charge to read the data from disk into a separate > function. This helps to separate the error handling logic (which depend on s/depend/depends/ > the different raid profiles) from the read from disk logic. > Refactoring this code increases the general readability too. > > This is a preparatory patch, to help the adding of the RAID 5/6 recovery > code. > > Signed-off-by: Goffredo Baroncelli Otherwise, Reviewed-by: Daniel Kiper Daniel