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

index 077543d9f295d16752d342819dc6c87af1921f40..5238ecc84ece734483a985e0fc97e7987db330d5 100644 (file)
@@ -307,6 +307,13 @@ virStorageBackendZFSCreateVol(virConnectPtr conn ATTRIBUTE_UNUSED,
         return -1;
     }
 
+    if (vol->target.encryption != NULL) {
+        virReportError(VIR_ERR_CONFIG_UNSUPPORTED,
+                       "%s", _("storage pool does not support encrypted "
+                               "volumes"));
+        return -1;
+    }
+
     vol->type = VIR_STORAGE_VOL_BLOCK;
 
     VIR_FREE(vol->target.path);