[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: [libvirt] [PATCH] Add --downtime option to virsh migrate command



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


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]