From: Richard Laager Date: Tue, 15 Mar 2016 06:17:36 +0000 (-0500) Subject: zfs: Only unencrypted volumes are supported X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=0c7245994fc6450a93f1f2ed8ed682c08feb8fb9;p=libvirt.git zfs: Only unencrypted volumes are supported --- diff --git a/src/storage/storage_backend_zfs.c b/src/storage/storage_backend_zfs.c index 077543d9f2..5238ecc84e 100644 --- a/src/storage/storage_backend_zfs.c +++ b/src/storage/storage_backend_zfs.c @@ -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);