Received: from list by lists.gnu.org with archive (Exim 4.71) id 1fGPeD-0002F4-8e for mharc-grub-devel@gnu.org; Wed, 09 May 2018 10:00:49 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:43571) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fGPeB-0002Dt-2n for grub-devel@gnu.org; Wed, 09 May 2018 10:00:47 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fGPe7-0001Dp-Tf for grub-devel@gnu.org; Wed, 09 May 2018 10:00:47 -0400 Received: from boksu.net-space.pl ([185.15.1.105]:45023) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_3DES_EDE_CBC_SHA1:24) (Exim 4.71) (envelope-from ) id 1fGPe7-0001Ab-JK for grub-devel@gnu.org; Wed, 09 May 2018 10:00:43 -0400 Received: (from localhost user: 'dkiper' uid#4000 fake: STDIN (dkiper@boksu.net-space.pl)) by router-fw-old.local.net-space.pl id S1838981AbeEIOAl (ORCPT ); Wed, 9 May 2018 16:00:41 +0200 Date: Wed, 9 May 2018 16:00:41 +0200 From: Daniel Kiper To: The development of GNU GRUB Cc: Goffredo Baroncelli Subject: Re: [PATCH 3/7] Move from the find_device the error logging logic to the callee. Message-ID: <20180509140041.GD25320@router-fw-old.local.net-space.pl> References: <20180424191316.11031-1-kreijack@inwind.it> <20180424191316.11031-4-kreijack@inwind.it> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180424191316.11031-4-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: Wed, 09 May 2018 14:00:48 -0000 On Tue, Apr 24, 2018 at 09:13:12PM +0200, Goffredo Baroncelli wrote: > 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 > index 01a1fc7a1..745bb854e 100644 > --- a/grub-core/fs/btrfs.c > +++ b/grub-core/fs/btrfs.c > @@ -602,9 +602,6 @@ find_device (struct grub_btrfs_data *data, grub_uint64_t id, int do_rescan) > grub_device_iterate (find_device_iter, &ctx); > if (!ctx.dev_found) > { > - grub_error (GRUB_ERR_BAD_FS, > - N_("couldn't find a necessary member device " > - "of multi-device filesystem")); > return NULL; > } > data->n_devices_attached++; > @@ -862,6 +859,9 @@ grub_btrfs_read_logical (struct grub_btrfs_data *data, grub_disk_addr_t addr, > dev = find_device (data, stripe->device_id, j); > if (!dev) > { > + grub_dprintf ("btrfs", > + "couldn't find a necessary member device " > + "of multi-device filesystem\n"); May I ask you to explain in the commit message why are you doing that? Daniel