mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-23 06:05:27 +00: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;
|
||||
}
|
||||
|
||||
if (disk->iomode) {
|
||||
if (disk->iomode != VIR_DOMAIN_DISK_IO_DEFAULT &&
|
||||
disk->iomode != VIR_DOMAIN_DISK_IO_NATIVE) {
|
||||
virReportError(VIR_ERR_CONFIG_UNSUPPORTED, "%s",
|
||||
_("Setting disk io mode is not "
|
||||
_("Only native iomode is "
|
||||
"supported by vz driver."));
|
||||
return -1;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user