Received: from eggs.gnu.org ([2001:4830:134:3::10]:37339) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YIDCQ-0003iL-O1 for qemu-devel@nongnu.org; Mon, 02 Feb 2015 04:21:43 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YIDCM-0005EH-Mt for qemu-devel@nongnu.org; Mon, 02 Feb 2015 04:21:42 -0500 Received: from mx1.redhat.com ([209.132.183.28]:40559) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YIDCM-0005E9-GH for qemu-devel@nongnu.org; Mon, 02 Feb 2015 04:21:38 -0500 Received: from int-mx13.intmail.prod.int.phx2.redhat.com (int-mx13.intmail.prod.int.phx2.redhat.com [10.5.11.26]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id t129LaoU001937 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL) for ; Mon, 2 Feb 2015 04:21:37 -0500 From: Markus Armbruster References: <1422524221-8566-1-git-send-email-armbru@redhat.com> <1422524221-8566-2-git-send-email-armbru@redhat.com> <54CB9EDE.3030700@redhat.com> Date: Mon, 02 Feb 2015 10:21:33 +0100 In-Reply-To: <54CB9EDE.3030700@redhat.com> (Max Reitz's message of "Fri, 30 Jan 2015 10:10:22 -0500") Message-ID: <87mw4wis82.fsf@blackfin.pond.sub.org> MIME-Version: 1.0 Content-Type: text/plain Subject: Re: [Qemu-devel] [PATCH v2 1/4] blockdev: Give find_block_job() an Error ** parameter List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Max Reitz Cc: kwolf@redhat.com, qemu-devel@nongnu.org, stefanha@redhat.com Max Reitz writes: > On 2015-01-29 at 04:36, Markus Armbruster wrote: >> When find_block_job() fails, all its callers build the same Error >> object. Build it in find_block_job() instead. >> >> Signed-off-by: Markus Armbruster >> Reviewed-by: Eric Blake >> --- >> blockdev.c | 19 ++++++++----------- >> 1 file changed, 8 insertions(+), 11 deletions(-) > > I think I'd like it better to return "Device not found" in case > bdrv_find() fails, but that's probably a matter of taste: Could be done on top. This patch intentionally doesn't change behavior. Of course, the whole job thing needs a redesign to liberate it from its tie to a single BDS. And then we won't bdrv_find() to find jobs. > Reviewed-by: Max Reitz Thanks!