]> xenbits.xensource.com Git - libvirt.git/commitdiff
logical: Only raw volumes are supported
authorRichard Laager <rlaager@wiktel.com>
Tue, 15 Mar 2016 06:17:34 +0000 (01:17 -0500)
committerRoman Bogorodskiy <bogorodskiy@gmail.com>
Mon, 21 Mar 2016 05:47:01 +0000 (08:47 +0300)
src/storage/storage_backend_logical.c

index 90a194ebc44c75f84bfa03e97fa1b96554e6f9cf..39e8b80ed08da216210cacc25fc1c5698c24bbe8 100644 (file)
@@ -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 "