[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH 09/27] qdict: Introduce qdict_rename_keys()
From: |
Max Reitz |
Subject: |
Re: [Qemu-devel] [PATCH 09/27] qdict: Introduce qdict_rename_keys() |
Date: |
Fri, 9 Feb 2018 19:19:25 +0100 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.5.2 |
On 2018-02-09 19:18, Max Reitz wrote:
> On 2018-02-08 20:23, Kevin Wolf wrote:
>> A few block drivers will need to rename .bdrv_create options for their
>> QAPIfication, so let's have a helper function for that.
>>
>> Signed-off-by: Kevin Wolf <address@hidden>
>> ---
>> include/qapi/qmp/qdict.h | 6 ++++++
>> qobject/qdict.c | 30 ++++++++++++++++++++++++++++++
>> 2 files changed, 36 insertions(+)
>
> Hmmm, looks OK, but I wonder whether this is going to be any more
> efficient than if we simply had a qdict_rename_key() function that you
> call multiple times.
>
> ("efficient" both in terms of code readability and runtime efficiency)
>
> So, I'll give you a
>
> Reviewed-by: Max Reitz <address@hidden>
>
> and let you decide.
Ah, I see, error handling is much easier this way, that's right. OK,
R-b stands then.
Max
signature.asc
Description: OpenPGP digital signature
- Re: [Qemu-devel] [PATCH 06/27] qcow2: Use QCryptoBlockCreateOptions in qcow2_create2(), (continued)
- [Qemu-devel] [PATCH 07/27] qcow2: Handle full/falloc preallocation in qcow2_create2(), Kevin Wolf, 2018/02/08
- [Qemu-devel] [PATCH 08/27] util: Add qemu_opts_to_qdict_filtered(), Kevin Wolf, 2018/02/08
- [Qemu-devel] [PATCH 09/27] qdict: Introduce qdict_rename_keys(), Kevin Wolf, 2018/02/08
- [Qemu-devel] [PATCH 10/27] qcow2: Use visitor for options in qcow2_create(), Kevin Wolf, 2018/02/08
- [Qemu-devel] [PATCH 11/27] block: x-blockdev-create QMP command, Kevin Wolf, 2018/02/08
- [Qemu-devel] [PATCH 13/27] file-win32: Support .bdrv_co_create, Kevin Wolf, 2018/02/08