]> git.proxmox.com Git - qemu.git/commitdiff
QError: New QERR_DEVICE_NOT_ENCRYPTED
authorShahar Havivi <shaharh@redhat.com>
Fri, 5 Mar 2010 22:25:35 +0000 (00:25 +0200)
committerAnthony Liguori <aliguori@us.ibm.com>
Wed, 17 Mar 2010 15:41:05 +0000 (10:41 -0500)
Signed-off-by: Shahar Havivi <shaharh@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
qerror.c
qerror.h

index 26eb70472e6aa3fd4668e1fb2c2d456a3ab947b3..d0aba61b2aeb4b846fd0dac78842020500f88762 100644 (file)
--- a/qerror.c
+++ b/qerror.c
@@ -64,6 +64,10 @@ static const QErrorStringTable qerror_table[] = {
         .error_fmt = QERR_DEVICE_INIT_FAILED,
         .desc      = "Device '%(device)' could not be initialized",
     },
+    {
+        .error_fmt = QERR_DEVICE_NOT_ENCRYPTED,
+        .desc      = "Device '%(device)' is not encrypted",
+    },
     {
         .error_fmt = QERR_DEVICE_LOCKED,
         .desc      = "Device '%(device)' is locked",
index 88b297a96da390fc2aecbb75d92b02896b40ff99..d96abe1d06993758aa5fd2294237498f872b2eac 100644 (file)
--- a/qerror.h
+++ b/qerror.h
@@ -57,6 +57,9 @@ QError *qobject_to_qerror(const QObject *obj);
 #define QERR_DEVICE_ENCRYPTED \
     "{ 'class': 'DeviceEncrypted', 'data': { 'device': %s } }"
 
+#define QERR_DEVICE_NOT_ENCRYPTED \
+    "{ 'class': 'DeviceNotEncrypted', 'data': { 'device': %s } }"
+
 #define QERR_DEVICE_INIT_FAILED \
     "{ 'class': 'DeviceInitFailed', 'data': { 'device': %s } }"