Received: from eggs.gnu.org ([2001:4830:134:3::10]:39152) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WkfAF-0007ja-Rf for qemu-devel@nongnu.org; Wed, 14 May 2014 15:48:36 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WkfAA-0006jL-VJ for qemu-devel@nongnu.org; Wed, 14 May 2014 15:48:31 -0400 Received: from mx1.redhat.com ([209.132.183.28]:28952) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WkfAA-0006j7-N2 for qemu-devel@nongnu.org; Wed, 14 May 2014 15:48:26 -0400 Received: from int-mx10.intmail.prod.int.phx2.redhat.com (int-mx10.intmail.prod.int.phx2.redhat.com [10.5.11.23]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id s4EJmODX024603 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK) for ; Wed, 14 May 2014 15:48:25 -0400 From: Markus Armbruster References: <1399996972-23429-1-git-send-email-armbru@redhat.com> <1399996972-23429-12-git-send-email-armbru@redhat.com> <5373ABB8.5020004@redhat.com> Date: Wed, 14 May 2014 21:48:20 +0200 In-Reply-To: <5373ABB8.5020004@redhat.com> (Eric Blake's message of "Wed, 14 May 2014 11:45:28 -0600") Message-ID: <87oaz06t17.fsf@blackfin.pond.sub.org> MIME-Version: 1.0 Content-Type: text/plain Subject: Re: [Qemu-devel] [PATCH 11/18] block/vvfat: Propagate errors through init_directories() List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Eric Blake Cc: kwolf@redhat.com, qemu-devel@nongnu.org, stefanha@redhat.com Eric Blake writes: > On 05/13/2014 10:02 AM, Markus Armbruster wrote: >> Completes the conversion of the open method to Error started in commit >> 015a103. >> >> Signed-off-by: Markus Armbruster >> --- >> block/vvfat.c | 16 +++++++++------- >> 1 file changed, 9 insertions(+), 7 deletions(-) >> >> @@ -892,8 +893,8 @@ static int init_directories(BDRVVVFATState* s, >> if (mapping->mode & MODE_DIRECTORY) { >> mapping->begin = cluster; >> if(read_directory(s, i)) { >> - fprintf(stderr, "Could not read directory %s\n", >> - mapping->path); >> + error_setg(errp, "Could not read directory %s", >> + mapping->path); > > I see you fixed some TABs in the process; is it worth widening the fix > to the rest of the 'if' statement? I don't care either way, as long as > checkpatch.pl didn't call you out (the new code is correct, even though > the existing code was not). checkpatch is happy. The fewer lines in vvfat.c git blames on me, the happier I am ;) > Reviewed-by: Eric Blake Thanks!