
2010/3/16 Jiri Denemark <jdenemar@redhat.com>:
Signed-off-by: Jiri Denemark <jdenemar@redhat.com> ---
@@ -2794,6 +2799,19 @@ cmdMigrate (vshControl *ctl, const vshCmd *cmd) if (vshCommandOptBool (cmd, "suspend")) flags |= VIR_MIGRATE_PAUSED;
+ downtime = vshCommandOptFloat(cmd, "downtime", &found); + if (found) { + unsigned long long nanoseconds = downtime * 1e9; + + if (nanoseconds <= 0) { + vshError(ctl, "%s", _("migrate: Invalid downtime")); + goto done; + } + + if (virDomainMigrateSetDowntime(dom, nanoseconds))
Is this persistent, or only valid for the next migration? For example, I do a migration with --downtime and afterwards I do another migration with the same domain, but this time I don't specify a downtime. Would the first downtime still apply to the second migration? Matthias