]> git.proxmox.com Git - qemu.git/commitdiff
qerror: Add QERR_UNKNOWN_BLOCK_FORMAT_FEATURE
authorKevin Wolf <kwolf@redhat.com>
Wed, 9 Feb 2011 10:09:38 +0000 (11:09 +0100)
committerKevin Wolf <kwolf@redhat.com>
Fri, 11 Feb 2011 13:33:59 +0000 (14:33 +0100)
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Reviewed-by: Anthony Liguori <aliguori@us.ibm.com>
(cherry picked from commit f54e3641122e51c6343d587805422642f307462e)

qerror.c
qerror.h

index 9d0cdeb45cccea8f903d93f46d03dd7847ad427c..485560418bd4284b83c9e2c9a1a5efb977e1a675 100644 (file)
--- a/qerror.c
+++ b/qerror.c
@@ -200,6 +200,11 @@ static const QErrorStringTable qerror_table[] = {
         .error_fmt = QERR_UNDEFINED_ERROR,
         .desc      = "An undefined error has ocurred",
     },
+    {
+        .error_fmt = QERR_UNKNOWN_BLOCK_FORMAT_FEATURE,
+        .desc      = "'%(device)' uses a %(format) feature which is not "
+                     "supported by this qemu version: %(feature)",
+    },
     {
         .error_fmt = QERR_VNC_SERVER_FAILED,
         .desc      = "Could not start VNC server on %(target)",
index b0f69dabe520ade0eee541a309f2dcfc66435a6d..f732d45e80bd0092d7c2fd3df6cc0c129f4dc3a2 100644 (file)
--- a/qerror.h
+++ b/qerror.h
@@ -165,6 +165,9 @@ QError *qobject_to_qerror(const QObject *obj);
 #define QERR_UNDEFINED_ERROR \
     "{ 'class': 'UndefinedError', 'data': {} }"
 
+#define QERR_UNKNOWN_BLOCK_FORMAT_FEATURE \
+    "{ 'class': 'UnknownBlockFormatFeature', 'data': { 'device': %s, 'format': %s, 'feature': %s } }"
+
 #define QERR_VNC_SERVER_FAILED \
     "{ 'class': 'VNCServerFailed', 'data': { 'target': %s } }"