From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:34545) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SuQC0-0005HT-PC for qemu-devel@nongnu.org; Thu, 26 Jul 2012 11:41:42 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SuQBv-0000Pp-TF for qemu-devel@nongnu.org; Thu, 26 Jul 2012 11:41:36 -0400 Received: from mx1.redhat.com ([209.132.183.28]:31226) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SuQBv-0000Pl-LH for qemu-devel@nongnu.org; Thu, 26 Jul 2012 11:41:31 -0400 Message-ID: <5011650D.1050100@redhat.com> Date: Thu, 26 Jul 2012 17:41:01 +0200 From: Paolo Bonzini MIME-Version: 1.0 References: <1343127865-16608-1-git-send-email-pbonzini@redhat.com> <1343127865-16608-3-git-send-email-pbonzini@redhat.com> <501161A4.6000800@redhat.com> In-Reply-To: <501161A4.6000800@redhat.com> Content-Type: text/plain; charset=ISO-8859-15 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH 02/47] qerror/block: introduce QERR_BLOCK_JOB_NOT_ACTIVE List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Kevin Wolf Cc: jcody@redhat.com, Luiz Capitulino , eblake@redhat.com, qemu-devel@nongnu.org, stefanha@linux.vnet.ibm.com Il 26/07/2012 17:26, Kevin Wolf ha scritto: >> The DeviceNotActive error is not a particularly good match, add >> > a separate one. >> > >> > Signed-off-by: Paolo Bonzini > Luiz, what do you think about this one? It seems to contradict the idea > of having only few error classes and free form error descriptions. I agree, but that's what we have to live with for now... > What's the error class that we should really have here? A general > QERR_NOT_ACTIVE? See my proposal here: http://lists.nongnu.org/archive/html/qemu-devel/2012-07/msg00061.html (totally ignored ;)). This would be QERR_INVALID_STATE (quoting from that message: "InvalidStateError is generally caused by the interaction with other commands, could be fixed by sending some commands and retrying"). Paolo