* [Qemu-devel] [PATCH] hmp-commands.hx: fix badly merged client_migrate_info command
@ 2011-03-09 15:54 Jes.Sorensen
2011-03-10 23:21 ` [Qemu-devel] " Anthony Liguori
0 siblings, 1 reply; 3+ messages in thread
From: Jes.Sorensen @ 2011-03-09 15:54 UTC (permalink / raw)
To: qemu-devel; +Cc: lcapitulino
From: Jes Sorensen <Jes.Sorensen@redhat.com>
client_migrate_info was merged badly, placing it between the command
and the documentation for another command. In addition it did not
respect the general rule of hmp-commands.hx, of having command
definition before the documentation.
Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com>
---
hmp-commands.hx | 32 ++++++++++++++++----------------
1 files changed, 16 insertions(+), 16 deletions(-)
diff --git a/hmp-commands.hx b/hmp-commands.hx
index 372bef4..834e6a8 100644
--- a/hmp-commands.hx
+++ b/hmp-commands.hx
@@ -821,16 +821,12 @@ Set maximum tolerated downtime (in seconds) for migration.
ETEXI
{
- .name = "snapshot_blkdev",
- .args_type = "device:B,snapshot_file:s?,format:s?",
- .params = "device [new-image-file] [format]",
- .help = "initiates a live snapshot\n\t\t\t"
- "of device. If a new image file is specified, the\n\t\t\t"
- "new image file will become the new root image.\n\t\t\t"
- "If format is specified, the snapshot file will\n\t\t\t"
- "be created in that format. Otherwise the\n\t\t\t"
- "snapshot will be internal! (currently unsupported)",
- .mhandler.cmd_new = do_snapshot_blkdev,
+ .name = "client_migrate_info",
+ .args_type = "protocol:s,hostname:s,port:i?,tls-port:i?,cert-subject:s?",
+ .params = "protocol hostname port tls-port cert-subject",
+ .help = "send migration info to spice/vnc client",
+ .user_print = monitor_user_noop,
+ .mhandler.cmd_new = client_migrate_info,
},
STEXI
@@ -842,12 +838,16 @@ new parameters (if specified) once the vm migration finished successfully.
ETEXI
{
- .name = "client_migrate_info",
- .args_type = "protocol:s,hostname:s,port:i?,tls-port:i?,cert-subject:s?",
- .params = "protocol hostname port tls-port cert-subject",
- .help = "send migration info to spice/vnc client",
- .user_print = monitor_user_noop,
- .mhandler.cmd_new = client_migrate_info,
+ .name = "snapshot_blkdev",
+ .args_type = "device:B,snapshot_file:s?,format:s?",
+ .params = "device [new-image-file] [format]",
+ .help = "initiates a live snapshot\n\t\t\t"
+ "of device. If a new image file is specified, the\n\t\t\t"
+ "new image file will become the new root image.\n\t\t\t"
+ "If format is specified, the snapshot file will\n\t\t\t"
+ "be created in that format. Otherwise the\n\t\t\t"
+ "snapshot will be internal! (currently unsupported)",
+ .mhandler.cmd_new = do_snapshot_blkdev,
},
STEXI
--
1.7.4
^ permalink raw reply related [flat|nested] 3+ messages in thread
* [Qemu-devel] Re: [PATCH] hmp-commands.hx: fix badly merged client_migrate_info command
2011-03-09 15:54 [Qemu-devel] [PATCH] hmp-commands.hx: fix badly merged client_migrate_info command Jes.Sorensen
@ 2011-03-10 23:21 ` Anthony Liguori
2011-03-11 6:33 ` Jes Sorensen
0 siblings, 1 reply; 3+ messages in thread
From: Anthony Liguori @ 2011-03-10 23:21 UTC (permalink / raw)
To: Jes.Sorensen; +Cc: qemu-devel, lcapitulino
On 03/09/2011 09:54 AM, Jes.Sorensen@redhat.com wrote:
> From: Jes Sorensen<Jes.Sorensen@redhat.com>
>
> client_migrate_info was merged badly,
It wasn't merged badly, it was implemented badly. The initial
description confused me because it sounded like a bad merge conflict
resolution but it just was wrong from the start.
> placing it between the command
> and the documentation for another command. In addition it did not
> respect the general rule of hmp-commands.hx, of having command
> definition before the documentation.
>
> Signed-off-by: Jes Sorensen<Jes.Sorensen@redhat.com>
Applied. Thanks.
Regards,
Anthony Liguori
> ---
> hmp-commands.hx | 32 ++++++++++++++++----------------
> 1 files changed, 16 insertions(+), 16 deletions(-)
>
> diff --git a/hmp-commands.hx b/hmp-commands.hx
> index 372bef4..834e6a8 100644
> --- a/hmp-commands.hx
> +++ b/hmp-commands.hx
> @@ -821,16 +821,12 @@ Set maximum tolerated downtime (in seconds) for migration.
> ETEXI
>
> {
> - .name = "snapshot_blkdev",
> - .args_type = "device:B,snapshot_file:s?,format:s?",
> - .params = "device [new-image-file] [format]",
> - .help = "initiates a live snapshot\n\t\t\t"
> - "of device. If a new image file is specified, the\n\t\t\t"
> - "new image file will become the new root image.\n\t\t\t"
> - "If format is specified, the snapshot file will\n\t\t\t"
> - "be created in that format. Otherwise the\n\t\t\t"
> - "snapshot will be internal! (currently unsupported)",
> - .mhandler.cmd_new = do_snapshot_blkdev,
> + .name = "client_migrate_info",
> + .args_type = "protocol:s,hostname:s,port:i?,tls-port:i?,cert-subject:s?",
> + .params = "protocol hostname port tls-port cert-subject",
> + .help = "send migration info to spice/vnc client",
> + .user_print = monitor_user_noop,
> + .mhandler.cmd_new = client_migrate_info,
> },
>
> STEXI
> @@ -842,12 +838,16 @@ new parameters (if specified) once the vm migration finished successfully.
> ETEXI
>
> {
> - .name = "client_migrate_info",
> - .args_type = "protocol:s,hostname:s,port:i?,tls-port:i?,cert-subject:s?",
> - .params = "protocol hostname port tls-port cert-subject",
> - .help = "send migration info to spice/vnc client",
> - .user_print = monitor_user_noop,
> - .mhandler.cmd_new = client_migrate_info,
> + .name = "snapshot_blkdev",
> + .args_type = "device:B,snapshot_file:s?,format:s?",
> + .params = "device [new-image-file] [format]",
> + .help = "initiates a live snapshot\n\t\t\t"
> + "of device. If a new image file is specified, the\n\t\t\t"
> + "new image file will become the new root image.\n\t\t\t"
> + "If format is specified, the snapshot file will\n\t\t\t"
> + "be created in that format. Otherwise the\n\t\t\t"
> + "snapshot will be internal! (currently unsupported)",
> + .mhandler.cmd_new = do_snapshot_blkdev,
> },
>
> STEXI
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Qemu-devel] Re: [PATCH] hmp-commands.hx: fix badly merged client_migrate_info command
2011-03-10 23:21 ` [Qemu-devel] " Anthony Liguori
@ 2011-03-11 6:33 ` Jes Sorensen
0 siblings, 0 replies; 3+ messages in thread
From: Jes Sorensen @ 2011-03-11 6:33 UTC (permalink / raw)
To: Anthony Liguori; +Cc: qemu-devel, lcapitulino
On 03/11/11 00:21, Anthony Liguori wrote:
> On 03/09/2011 09:54 AM, Jes.Sorensen@redhat.com wrote:
>> From: Jes Sorensen<Jes.Sorensen@redhat.com>
>>
>> client_migrate_info was merged badly,
>
> It wasn't merged badly, it was implemented badly. The initial
> description confused me because it sounded like a bad merge conflict
> resolution but it just was wrong from the start.
I wasn't quite sure where the badness happened, it basically looked like
a bad cleanup after a git pull. Sorry if I gave the impression that the
merge at your end was to blame.
Cheers,
Jes
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2011-03-11 6:33 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-03-09 15:54 [Qemu-devel] [PATCH] hmp-commands.hx: fix badly merged client_migrate_info command Jes.Sorensen
2011-03-10 23:21 ` [Qemu-devel] " Anthony Liguori
2011-03-11 6:33 ` Jes Sorensen
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).