]> git.proxmox.com Git - mirror_qemu.git/blobdiff - qerror.c
block: use proper qerrors in qmp_block_resize
[mirror_qemu.git] / qerror.c
index 2979b3ef7ff95df1a124fe7ef7a71bf34170598a..3d95383940fd7b4c50b6a914454c71fde18151c8 100644 (file)
--- a/qerror.c
+++ b/qerror.c
@@ -79,6 +79,10 @@ static const QErrorStringTable qerror_table[] = {
         .error_fmt = QERR_DEVICE_FEATURE_BLOCKS_MIGRATION,
         .desc      = "Migration is disabled when using feature '%(feature)' in device '%(device)'",
     },
+    {
+        .error_fmt = QERR_DEVICE_HAS_NO_MEDIUM,
+        .desc      = "Device '%(device)' has no medium",
+    },
     {
         .error_fmt = QERR_DEVICE_INIT_FAILED,
         .desc      = "Device '%(device)' could not be initialized",
@@ -87,6 +91,10 @@ static const QErrorStringTable qerror_table[] = {
         .error_fmt = QERR_DEVICE_IN_USE,
         .desc      = "Device '%(device)' is in use",
     },
+    {
+        .error_fmt = QERR_DEVICE_IS_READ_ONLY,
+        .desc      = "Device '%(device)' is read only",
+    },
     {
         .error_fmt = QERR_DEVICE_LOCKED,
         .desc      = "Device '%(device)' is locked",