<div dir="ltr"><div><div>Michal,<br><br></div>Should I fix these or will you do it?<br><br></div>Pavel<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, May 29, 2015 at 6:37 PM, John Ferlan <span dir="ltr"><<a href="mailto:jferlan@redhat.com" target="_blank">jferlan@redhat.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="HOEnZb"><div class="h5"><br>
<br>
On 05/26/2015 09:01 AM, Michal Privoznik wrote:<br>
> From: Pavel Boldin <<a href="mailto:pboldin@mirantis.com">pboldin@mirantis.com</a>><br>
><br>
> Add `virsh migrate' option `--migratedisks' that allows CLI user to<br>
> explicitly specify block devices to migrate.<br>
><br>
> Signed-off-by: Pavel Boldin <<a href="mailto:pboldin@mirantis.com">pboldin@mirantis.com</a>><br>
> Signed-off-by: Michal Privoznik <<a href="mailto:mprivozn@redhat.com">mprivozn@redhat.com</a>><br>
> ---<br>
>  tools/virsh-domain.c | 23 +++++++++++++++++++++++<br>
>  tools/virsh.pod      | 21 ++++++++++++---------<br>
>  2 files changed, 35 insertions(+), 9 deletions(-)<br>
><br>
> diff --git a/tools/virsh-domain.c b/tools/virsh-domain.c<br>
> index 91a1ca2..41d3829 100644<br>
> --- a/tools/virsh-domain.c<br>
> +++ b/tools/virsh-domain.c<br>
> @@ -9889,6 +9889,10 @@ static const vshCmdOptDef opts_migrate[] = {<br>
>       .type = VSH_OT_STRING,<br>
>       .help = N_("filename containing updated XML for the target")<br>
>      },<br>
> +    {.name = "migratedisks",<br>
> +     .type = VSH_OT_STRING,<br>
> +     .help = N_("comma separated list of disks to be migrated")<br>
> +    },<br>
>      {.name = NULL}<br>
>  };<br>
><br>
> @@ -9948,6 +9952,25 @@ doMigrate(void *opaque)<br>
>                                  VIR_MIGRATE_PARAM_DEST_NAME, opt) < 0)<br>
>          goto save_error;<br>
><br>
> +    if (vshCommandOptStringReq(ctl, cmd, "migratedisks", &opt) < 0)<br>
> +        goto out;<br>
> +    if (opt) {<br>
> +        char **val = NULL;<br>
> +<br>
> +        val = virStringSplit(opt, ",", 0);<br>
> +<br>
> +        if (virTypedParamsAddStringList(&params,<br>
> +                                        &nparams,<br>
> +                                        &maxparams,<br>
> +                                        VIR_MIGRATE_PARAM_MIGRATE_DISKS,<br>
> +                                        (const char **)val) < 0) {<br>
> +            VIR_FREE(val);<br>
> +            goto save_error;<br>
> +        }<br>
> +<br>
> +        VIR_FREE(val);<br>
> +    }<br>
> +<br>
>      if (vshCommandOptStringReq(ctl, cmd, "xml", &opt) < 0)<br>
>          goto out;<br>
>      if (opt) {<br>
> diff --git a/tools/virsh.pod b/tools/virsh.pod<br>
> index d588e5a..9275091 100644<br>
> --- a/tools/virsh.pod<br>
> +++ b/tools/virsh.pod<br>
> @@ -1521,6 +1521,7 @@ to the I<uri> namespace is displayed instead of being modified.<br>
>  [I<--compressed>] [I<--abort-on-error>] [I<--auto-converge>]<br>
>  I<domain> I<desturi> [I<migrateuri>] [I<graphicsuri>] [I<listen-address>]<br>
>  [I<dname>] [I<--timeout> B<seconds>] [I<--xml> B<file>]<br>
> +[I<--migratedisks> B<disk-list>]<br>
><br>
>  Migrate domain to another host.  Add I<--live> for live migration; <--p2p><br>
>  for peer-2-peer migration; I<--direct> for direct migration; or I<--tunnelled><br>
> @@ -1536,15 +1537,17 @@ with incremental copy (same base image shared between source and destination).<br>
>  In both cases the disk images have to exist on destination host, the<br>
>  I<--copy-storage-...> options only tell libvirt to transfer data from the<br>
>  images on source host to the images found at the same place on the destination<br>
> -host. I<--change-protection> enforces that no incompatible configuration<br>
> -changes will be made to the domain while the migration is underway; this flag<br>
> -is implicitly enabled when supported by the hypervisor, but can be explicitly<br>
> -used to reject the migration if the hypervisor lacks change protection<br>
> -support.  I<--verbose> displays the progress of migration.  I<--compressed><br>
> -activates compression of memory pages that have to be transferred repeatedly<br>
> -during live migration. I<--abort-on-error> cancels the migration if a soft<br>
> -error (for example I/O error) happens during the migration. I<--auto-converge><br>
> -forces convergence during live migration.<br>
> +host. By default only non-shared non-readonly images are transfered. Use<br>
> +I<--migratedisks> to explicitly specify a list of disk targets to transfer.<br>
> +B<disk-list> is a comma separated list then.  I<--change-protection> enforces<br>
> +that no incompatible configuration changes will be made to the domain while the<br>
> +migration is underway; this flag is implicitly enabled when supported by the<br>
> +hypervisor, but can be explicitly used to reject the migration if the<br>
> +hypervisor lacks change protection support.  I<--verbose> displays the progress<br>
> +of migration.  I<--compressed> activates compression of memory pages that have<br>
> +to be transferred repeatedly during live migration. I<--abort-on-error> cancels<br>
> +the migration if a soft error (for example I/O error) happens during the<br>
> +migration. I<--auto-converge> forces convergence during live migration.<br>
><br>
>  B<Note>: Individual hypervisors usually do not support all possible types of<br>
>  migration. For example, QEMU does not support direct migration.<br>
><br>
<br>
</div></div>Assuming the new text is:<br>
<span class=""><br>
"By default only non-shared non-readonly images are transfered. Use<br>
</span><span class="">I<--migratedisks> to explicitly specify a list of disk targets to<br>
</span>transfer. B<disk-list> is a comma separated list then."<br>
<br>
Change to:<br>
<br>
"By default only non-shared non-readonly images are transferred. Use<br>
<span class="">I<--migratedisks> to explicitly specify a list of disk targets to<br>
</span>transfer via the comma separated B<disk-list> argument."<br>
<br>
Note: transfered was misspelled...  [I just searched on "comma " in the<br>
existing document to find a few different examples...]<br>
<br>
ACK (although existing still holds too!)<br>
<span class="HOEnZb"><font color="#888888"><br>
John<br>
</font></span></blockquote></div><br></div>