]> git.proxmox.com Git - qemu.git/commitdiff
QError: New QERR_FD_NOT_FOUND
authorMarkus Armbruster <armbru@redhat.com>
Mon, 7 Dec 2009 20:37:10 +0000 (21:37 +0100)
committerAnthony Liguori <aliguori@us.ibm.com>
Mon, 7 Dec 2009 22:34:35 +0000 (16:34 -0600)
Signed-off-by: Markus Armbruster <armbru@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
qerror.c
qerror.h

index 128a91e567bc8fac429f6f829c813a357b1098b0..d75c69aa35e855c8820ddaab0ad50b2ea89d0328 100644 (file)
--- a/qerror.c
+++ b/qerror.c
@@ -64,6 +64,10 @@ static const QErrorStringTable qerror_table[] = {
         .error_fmt = QERR_DEVICE_NOT_REMOVABLE,
         .desc      = "Device %(device) is not removable",
     },
+    {
+        .error_fmt = QERR_FD_NOT_FOUND,
+        .desc      = "Failed to find file descriptor named %(name)",
+    },
     {
         .error_fmt = QERR_INVALID_BLOCK_FORMAT,
         .desc      = "Invalid block format %(name)",
index 1a05d9a66ae6740abdc2a7f8315702994535f7be..bda764ff9f5b01074fed33ed408f9f5a6ec5d3cd 100644 (file)
--- a/qerror.h
+++ b/qerror.h
@@ -56,6 +56,9 @@ QError *qobject_to_qerror(const QObject *obj);
 #define QERR_DEVICE_NOT_REMOVABLE \
     "{ 'class': 'DeviceNotRemovable', 'data': { 'device': %s } }"
 
+#define QERR_FD_NOT_FOUND \
+    "{ 'class': 'fd_not_found', 'data': { 'name': %s } }"
+
 #define QERR_INVALID_BLOCK_FORMAT \
     "{ 'class': 'InvalidBlockFormat', 'data': { 'name': %s } }"