mirror of
https://github.com/libvirt/libvirt.git
synced 2025-02-25 18:55:26 -06:00
vz: correct iomode check
Virtuozzo hypervisor supports native iomode. So we should allow to add disk with iomode "native" or "default".
This commit is contained in:
parent
9b69f02243
commit
500f23767a
@ -329,9 +329,10 @@ vzCheckDiskUnsupportedParams(virDomainDiskDefPtr disk)
|
|||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (disk->iomode) {
|
if (disk->iomode != VIR_DOMAIN_DISK_IO_DEFAULT &&
|
||||||
|
disk->iomode != VIR_DOMAIN_DISK_IO_NATIVE) {
|
||||||
virReportError(VIR_ERR_CONFIG_UNSUPPORTED, "%s",
|
virReportError(VIR_ERR_CONFIG_UNSUPPORTED, "%s",
|
||||||
_("Setting disk io mode is not "
|
_("Only native iomode is "
|
||||||
"supported by vz driver."));
|
"supported by vz driver."));
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user