提交 500f2376 编写于 作者: M Mikhail Feoktistov 提交者: Maxim Nestratov

vz: correct iomode check

Virtuozzo hypervisor supports native iomode.
So we should allow to add disk with iomode "native" or "default".
上级 9b69f022
......@@ -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;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册