[libvirt] [PATCH 4/6] logical: Only raw volumes are supported

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


---
 src/storage/storage_backend_logical.c | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/src/storage/storage_backend_logical.c b/src/storage/storage_backend_logical.c
index 90a194e..39e8b80 100644
--- a/src/storage/storage_backend_logical.c
+++ b/src/storage/storage_backend_logical.c
@@ -912,6 +912,12 @@ virStorageBackendLogicalCreateVol(virConnectPtr conn,
     struct stat sb;
     bool created = false;
 
+    if (vol->target.format != VIR_STORAGE_FILE_RAW) {
+        virReportError(VIR_ERR_CONFIG_UNSUPPORTED, "%s",
+                       _("only RAW volumes are supported by this storage pool"));
+        return -1;
+    }
+
     if (vol->target.encryption != NULL) {
         virReportError(VIR_ERR_CONFIG_UNSUPPORTED,
                        "%s", _("storage pool does not support encrypted "
-- 
2.1.4




More information about the libvir-list mailing list