From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:59968) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1StGjt-0004L5-V2 for qemu-devel@nongnu.org; Mon, 23 Jul 2012 07:23:53 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1StGjo-0001UM-20 for qemu-devel@nongnu.org; Mon, 23 Jul 2012 07:23:49 -0400 Received: from mail-bk0-f45.google.com ([209.85.214.45]:40800) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1StGjn-0001Tp-Rc for qemu-devel@nongnu.org; Mon, 23 Jul 2012 07:23:43 -0400 Received: by mail-bk0-f45.google.com with SMTP id ji1so4304510bkc.4 for ; Mon, 23 Jul 2012 04:23:43 -0700 (PDT) From: benoit.canet@gmail.com Date: Mon, 23 Jul 2012 13:23:34 +0200 Message-Id: <1343042615-5013-3-git-send-email-benoit@irqsave.net> In-Reply-To: <1343042615-5013-1-git-send-email-benoit@irqsave.net> References: <1343042615-5013-1-git-send-email-benoit@irqsave.net> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Subject: [Qemu-devel] [PATCH V2 2/3] qerror: Add error telling that streaming blocks migration List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: kwolf@redhat.com, stefanha@gmail.com, =?UTF-8?q?Beno=C3=AEt=20Canet?= , stefanha@linux.vnet.ibm.com, pbonzini@redhat.com From: BenoƮt Canet Signed-off-by: Benoit Canet --- qerror.c | 4 ++++ qerror.h | 3 +++ 2 files changed, 7 insertions(+) diff --git a/qerror.c b/qerror.c index 92c4eff..bcd74b7 100644 --- a/qerror.c +++ b/qerror.c @@ -283,6 +283,10 @@ static const QErrorStringTable qerror_table[] = { .desc = "Could not set password", }, { + .error_fmt = QERR_STREAMING_BLOCKS_MIGRATION, + .desc = "Streaming blocks migration", + }, + { .error_fmt = QERR_TOO_MANY_FILES, .desc = "Too many open files", }, diff --git a/qerror.h b/qerror.h index b4c8758..95d9e8d 100644 --- a/qerror.h +++ b/qerror.h @@ -233,6 +233,9 @@ QError *qobject_to_qerror(const QObject *obj); #define QERR_SET_PASSWD_FAILED \ "{ 'class': 'SetPasswdFailed', 'data': {} }" +#define QERR_STREAMING_BLOCKS_MIGRATION \ + "{ 'class': 'StreamingFeatureBlocksMigration', 'data': {} }" + #define QERR_TOO_MANY_FILES \ "{ 'class': 'TooManyFiles', 'data': {} }" -- 1.7.9.5