[libvirt] [PATCH 2/6] sheepdog: Use a consistent error message

Richard Laager rlaager at wiktel.com
Tue Mar 15 06:17:32 UTC 2016


This also reduces the number of strings to translate.
---
 src/storage/storage_backend_sheepdog.c | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/src/storage/storage_backend_sheepdog.c b/src/storage/storage_backend_sheepdog.c
index a3bd78a..001d16f 100644
--- a/src/storage/storage_backend_sheepdog.c
+++ b/src/storage/storage_backend_sheepdog.c
@@ -237,8 +237,9 @@ virStorageBackendSheepdogCreateVol(virConnectPtr conn ATTRIBUTE_UNUSED,
                                    virStorageVolDefPtr vol)
 {
     if (vol->target.encryption != NULL) {
-        virReportError(VIR_ERR_CONFIG_UNSUPPORTED, "%s",
-                       _("Sheepdog does not support encrypted volumes"));
+        virReportError(VIR_ERR_CONFIG_UNSUPPORTED,
+                       "%s", _("storage pool does not support encrypted "
+                               "volumes"));
         return -1;
     }
 
-- 
2.1.4




More information about the libvir-list mailing list