Received: from eggs.gnu.org ([2001:4830:134:3::10]:59941) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bSORC-0003w6-VS for qemu-devel@nongnu.org; Wed, 27 Jul 2016 08:59:51 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bSORC-0007Y9-1p for qemu-devel@nongnu.org; Wed, 27 Jul 2016 08:59:50 -0400 From: Markus Armbruster References: <1468845016-43468-1-git-send-email-pasic@linux.vnet.ibm.com> <1469532873-78542-1-git-send-email-pasic@linux.vnet.ibm.com> <7c4bdb1e-f0aa-4a07-2780-37f4f92c6665@redhat.com> <57979B63.1060505@linux.vnet.ibm.com> Date: Wed, 27 Jul 2016 14:59:41 +0200 In-Reply-To: (Max Reitz's message of "Tue, 26 Jul 2016 19:47:32 +0200") Message-ID: <87popznsn6.fsf@dusky.pond.sub.org> MIME-Version: 1.0 Content-Type: text/plain Subject: Re: [Qemu-devel] [PATCH v2 1/1] block: improve error handling in raw_open List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Max Reitz Cc: Halil Pasic , qemu-block@nongnu.org, Kevin Wolf , Cornelia Huck , qemu-devel@nongnu.org Max Reitz writes: > On 26.07.2016 19:18, Halil Pasic wrote: [...] >> Frankly, I'm a bit uncomfortable with asking (do not want to be pushy), >> but do you have an opinion on the 'error_report_err' issue (pointed >> out in the cover letter part)? > > You are using drive_add with QMP? As far as I know, one can only do so > with human-monitor-command which returns the error string like so: > > {"return": "Could not open file: No such file or directory\r\n"} > > Apart from that, as for QMP, in theory you're supposed to use > blockdev-add In theory, we're supposed to have completed development of blockdev-add into a useful, supported interface... > and device_add, I think (although blockdev-add is still > considered experimental...). ... but we haven't, and that's why libvirt isn't using it, and you shouldn't be using it, either. > And blockdev-add will return the error > string like so: > > {"error": {"class": "GenericError", "desc": "Could not open file: No > such file or directory"}}