From 1a94cbcd1698814e7cfd75ed45a49f8d72fcfba7 Mon Sep 17 00:00:00 2001 From: Shivaprasad G Bhat Date: Mon, 20 Aug 2018 11:57:13 +0530 Subject: [PATCH] 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 --- src/storage/storage_util.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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; }