From: Shivaprasad G Bhat Date: Mon, 20 Aug 2018 06:27:13 +0000 (+0530) Subject: storage: fix the error message when encrypted raw volume resize X-Git-Tag: v4.7.0-rc1~48 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1a94cbcd1698814e7cfd75ed45a49f8d72fcfba7;p=thirdparty%2Flibvirt.git 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 Reviewed-by: John Ferlan --- diff --git a/src/storage/storage_util.c b/src/storage/storage_util.c index 42a9b6abf0..c25929e026 100644 --- a/src/storage/storage_util.c +++ b/src/storage/storage_util.c @@ -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; }