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:
Mikhail Feoktistov 2016-04-12 09:57:56 -04:00 committed by Maxim Nestratov
parent 9b69f02243
commit 500f23767a

View File

@ -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;
}