[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH 5/9] monitor: move hmp_block_job* to blockdev-hmp-cmd.c
From: |
Markus Armbruster |
Subject: |
Re: [PATCH 5/9] monitor: move hmp_block_job* to blockdev-hmp-cmd.c |
Date: |
Wed, 27 Nov 2019 08:24:23 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/26.2 (gnu/linux) |
Maxim Levitsky <address@hidden> writes:
> Signed-off-by: Maxim Levitsky <address@hidden>
> ---
> blockdev-hmp-cmds.c | 52 +++++++++++++++++++++++++++++++++++++++++++++
> monitor/hmp-cmds.c | 52 ---------------------------------------------
> 2 files changed, 52 insertions(+), 52 deletions(-)
>
> diff --git a/blockdev-hmp-cmds.c b/blockdev-hmp-cmds.c
> index 5ae899a324..e333de27b1 100644
> --- a/blockdev-hmp-cmds.c
> +++ b/blockdev-hmp-cmds.c
> @@ -238,3 +238,55 @@ void hmp_drive_backup(Monitor *mon, const QDict *qdict)
> hmp_handle_error(mon, &err);
> }
>
> +
Is this extra blank line intentional?
> +void hmp_block_job_set_speed(Monitor *mon, const QDict *qdict)
> +{
> + Error *error = NULL;
> + const char *device = qdict_get_str(qdict, "device");
> + int64_t value = qdict_get_int(qdict, "speed");
> +
> + qmp_block_job_set_speed(device, value, &error);
> +
> + hmp_handle_error(mon, &error);
> +}
[...]
- [PATCH 0/9] RFC: [for 5.0]: HMP monitor handlers cleanups, Maxim Levitsky, 2019/11/20
- [PATCH 1/9] monitor: uninline add_init_drive, Maxim Levitsky, 2019/11/20
- [PATCH 3/9] monitor: move hmp_drive_del and hmp_commit to blockdev-hmp-cmds.c, Maxim Levitsky, 2019/11/20
- [PATCH 2/9] monitor: rename device-hotplug.c to blockdev-hmp-cmds.c, Maxim Levitsky, 2019/11/20
- [PATCH 5/9] monitor: move hmp_block_job* to blockdev-hmp-cmd.c, Maxim Levitsky, 2019/11/20
- Re: [PATCH 5/9] monitor: move hmp_block_job* to blockdev-hmp-cmd.c,
Markus Armbruster <=
- [PATCH 4/9] monitor: move hmp_drive_mirror and hmp_drive_backup to blockdev-hmp-cmds.c, Maxim Levitsky, 2019/11/20
- [PATCH 8/9] monitor: move hmp_info_block* to blockdev-hmp-cmds.c, Maxim Levitsky, 2019/11/20
- [PATCH 6/9] monitor: move hmp_snapshot_* to blockdev-hmp-cmds.c, Maxim Levitsky, 2019/11/20
- [PATCH 7/9] monitor: move remaining hmp_block* functions to blockdev-hmp-cmds.c, Maxim Levitsky, 2019/11/20
- [PATCH 9/9] monitor/hmp: Prefer to use hmp_handle_error for error reporting in block hmp commands, Maxim Levitsky, 2019/11/20
- Re: [PATCH 0/9] RFC: [for 5.0]: HMP monitor handlers cleanups, Dr. David Alan Gilbert, 2019/11/22