]> git.proxmox.com Git - qemu.git/commitdiff
QError: New QERR_DEVICE_LOCKED
authorMarkus Armbruster <armbru@redhat.com>
Mon, 7 Dec 2009 20:37:03 +0000 (21:37 +0100)
committerAnthony Liguori <aliguori@us.ibm.com>
Mon, 7 Dec 2009 22:34:33 +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 03e3b34c7dcac7b0d7efc2feb8e052ebcb79cff7..37e8072464e92c584a8e8a2f79bd4166fed9abe2 100644 (file)
--- a/qerror.c
+++ b/qerror.c
@@ -48,6 +48,10 @@ static const QErrorStringTable qerror_table[] = {
         .error_fmt = QERR_DEVICE_ENCRYPTED,
         .desc      = "The %(device) is encrypted",
     },
+    {
+        .error_fmt = QERR_DEVICE_LOCKED,
+        .desc      = "Device %(device) is locked",
+    },
     {
         .error_fmt = QERR_DEVICE_NOT_ACTIVE,
         .desc      = "The %(device) device has not been activated by the guest",
index 062c0c40932a4870f514ad2bfa372b6bd4c00e5c..be6cd6897a4390004ee14b345de3fa99c24bbc9c 100644 (file)
--- a/qerror.h
+++ b/qerror.h
@@ -44,6 +44,9 @@ QError *qobject_to_qerror(const QObject *obj);
 #define QERR_DEVICE_ENCRYPTED \
     "{ 'class': 'DeviceEncrypted', 'data': { 'device': %s } }"
 
+#define QERR_DEVICE_LOCKED                                      \
+    "{ 'class': 'DeviceLocked', 'data': { 'device': %s } }"
+
 #define QERR_DEVICE_NOT_ACTIVE \
     "{ 'class': 'DeviceNotActive', 'data': { 'device': %s } }"