]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
storage: fix the error message when encrypted raw volume resize
authorShivaprasad G Bhat <sbhat@linux.vnet.ibm.com>
Mon, 20 Aug 2018 06:27:13 +0000 (11:57 +0530)
committerJohn Ferlan <jferlan@redhat.com>
Thu, 23 Aug 2018 16:14:31 +0000 (12:14 -0400)
The vol-dumpxml shows the volume target format type as raw for
encrypted volumes. The error message when attempting to resize
with prealloc is confusing here.

Signed-off-by: Shivaprasad G Bhat <sbhat@linux.vnet.ibm.com>
Reviewed-by: John Ferlan <jferlan@redhat.com>
src/storage/storage_util.c

index 42a9b6abf01f2398784dcbc6fe3a4eb5b8c4b66a..c25929e0262dffa693b08fba07bb712bddc2fe59 100644 (file)
@@ -2343,8 +2343,8 @@ virStorageBackendVolResizeLocal(virStoragePoolObjPtr pool,
     } else if (vol->target.format == VIR_STORAGE_FILE_RAW && vol->target.encryption) {
         if (pre_allocate) {
             virReportError(VIR_ERR_OPERATION_UNSUPPORTED, "%s",
-                           _("preallocate is only supported for raw "
-                             "type volume"));
+                           _("preallocate is only supported for an "
+                             "unencrypted raw volume"));
             return -1;
         }