aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuiz Capitulino <lcapitulino@redhat.com>2009-12-07 21:36:59 +0100
committerAnthony Liguori <aliguori@us.ibm.com>2009-12-07 16:36:49 -0600
commitbcddbd0f6aff8e0061f2ab6686b29892544a076d (patch)
tree3f6f98eb250149d4859610258abef65c05567c7b /qerror.c
parentmonitor: Introduce 'block_passwd' command (diff)
downloadqemu-kvm-bcddbd0f6aff8e0061f2ab6686b29892544a076d.tar.gz
qemu-kvm-bcddbd0f6aff8e0061f2ab6686b29892544a076d.tar.bz2
qemu-kvm-bcddbd0f6aff8e0061f2ab6686b29892544a076d.zip
QError: new class for device encrypted errors
Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com> Signed-off-by: Markus Armbruster <armbru@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com> (cherry picked from commit 0df37c411ccf9f830f38f3f6405fac9320a70bac)
Diffstat (limited to 'qerror.c')
-rw-r--r--qerror.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/qerror.c b/qerror.c
index eb4ce3331..d90529cd4 100644
--- a/qerror.c
+++ b/qerror.c
@@ -45,6 +45,10 @@ static const QErrorStringTable qerror_table[] = {
.desc = "The command %(name) has not been found",
},
{
+ .error_fmt = QERR_DEVICE_ENCRYPTED,
+ .desc = "The %(device) is encrypted",
+ },
+ {
.error_fmt = QERR_DEVICE_NOT_FOUND,
.desc = "The %(device) device has not been found",
},