提交 67af358d 编写于 作者: K Kothapally Madhu Pavan 提交者: Michal Privoznik

Check for --live flag for postcopy-after-precopy migration

Unlike postcopy migration there is no --live flag check for
postcopy-after-precopy.
Signed-off-by: NKothapally Madhu Pavan <kmp@linux.vnet.ibm.com>
上级 2ff85c28
...@@ -10318,6 +10318,12 @@ cmdMigrate(vshControl *ctl, const vshCmd *cmd) ...@@ -10318,6 +10318,12 @@ cmdMigrate(vshControl *ctl, const vshCmd *cmd)
} }
if (vshCommandOptBool(cmd, "postcopy-after-precopy")) { if (vshCommandOptBool(cmd, "postcopy-after-precopy")) {
if (!live_flag) {
virReportError(VIR_ERR_ARGUMENT_UNSUPPORTED, "%s",
_("post-copy migration is not supported with "
"non-live or paused migration"));
goto cleanup;
}
iterEvent = virConnectDomainEventRegisterAny( iterEvent = virConnectDomainEventRegisterAny(
priv->conn, dom, priv->conn, dom,
VIR_DOMAIN_EVENT_ID_MIGRATION_ITERATION, VIR_DOMAIN_EVENT_ID_MIGRATION_ITERATION,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册