zfs: Only raw volumes are supported

This commit is contained in:
Richard Laager 2016-03-15 01:17:35 -05:00 committed by Roman Bogorodskiy
parent 6682d6219d
commit bb5f2dc91f

View File

@ -301,6 +301,12 @@ virStorageBackendZFSCreateVol(virConnectPtr conn ATTRIBUTE_UNUSED,
int ret = -1;
int volmode_needed = -1;
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;
}
vol->type = VIR_STORAGE_VOL_BLOCK;
VIR_FREE(vol->target.path);