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

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

 



2010/3/16 Jiri Denemark <jdenemar@xxxxxxxxxx>:
> Signed-off-by: Jiri Denemark <jdenemar@xxxxxxxxxx>
> ---

> @@ -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

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list


[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]