mirror of
https://github.com/libvirt/libvirt.git
synced 2025-02-25 18:55:26 -06:00
storage: fix the error message when encrypted raw volume resize
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>
This commit is contained in:
parent
a4c1cba28e
commit
1a94cbcd16
@ -2343,8 +2343,8 @@ virStorageBackendVolResizeLocal(virStoragePoolObjPtr pool,
|
|||||||
} else if (vol->target.format == VIR_STORAGE_FILE_RAW && vol->target.encryption) {
|
} else if (vol->target.format == VIR_STORAGE_FILE_RAW && vol->target.encryption) {
|
||||||
if (pre_allocate) {
|
if (pre_allocate) {
|
||||||
virReportError(VIR_ERR_OPERATION_UNSUPPORTED, "%s",
|
virReportError(VIR_ERR_OPERATION_UNSUPPORTED, "%s",
|
||||||
_("preallocate is only supported for raw "
|
_("preallocate is only supported for an "
|
||||||
"type volume"));
|
"unencrypted raw volume"));
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user