[libvirt] [PATCH] Add --downtime option to virsh migrate command
Matthias Bolte
matthias.bolte at googlemail.com
Tue Mar 16 17:02:30 UTC 2010
2010/3/16 Jiri Denemark <jdenemar at redhat.com>:
> Signed-off-by: Jiri Denemark <jdenemar at 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
More information about the libvir-list
mailing list