mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-22 13:45:38 +00:00
zfs: Only raw volumes are supported
This commit is contained in:
parent
6682d6219d
commit
bb5f2dc91f
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user