[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-block] [Qemu-devel] [PATCH 05/16] introduce a new API qemu_opt
From: |
Eric Blake |
Subject: |
Re: [Qemu-block] [Qemu-devel] [PATCH 05/16] introduce a new API qemu_opts_absorb_qdict_by_index() |
Date: |
Wed, 2 Sep 2015 13:01:20 -0600 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.1.0 |
On 09/02/2015 02:51 AM, Wen Congyang wrote:
> Signed-off-by: Wen Congyang <address@hidden>
> Signed-off-by: zhanghailiang <address@hidden>
> Signed-off-by: Gonglei <address@hidden>
Commit message is a bit sparse.
> ---
> include/qemu/option.h | 2 ++
> util/qemu-option.c | 44 ++++++++++++++++++++++++++++++++++++++++++++
> 2 files changed, 46 insertions(+)
>
Missing testsuite exposure of the new function.
> /*
> + * Adds all QDict entries to the QemuOpts that can be added and removes them
> + * from the QDict. The key starts with "%index." in the %qdict. When this
"%index." reads awkwardly (I thought it was a printf-style format). But
I'm not sure if "starts with %index followed by '.'" is any better.
> + * function returns, the QDict contains only those entries that couldn't be
> + * added to the QemuOpts.
> + */
> +void qemu_opts_absorb_qdict_by_index(QemuOpts *opts, QDict *qdict,
> + const char *index, Error **errp)
> +{
I didn't review the algorithm closely, but here's a superficial comment:
> + const QDictEntry *entry, *next;
> + const char *key;
> + int len = strlen(index);
size_t
--
Eric Blake eblake redhat com +1-919-301-3266
Libvirt virtualization library http://libvirt.org
signature.asc
Description: OpenPGP digital signature
- [Qemu-block] [PATCH 06/16] quorum: allow ignoring child errors, (continued)
- [Qemu-block] [PATCH 02/16] introduce a new API to check if blk is attached, Wen Congyang, 2015/09/02
- [Qemu-block] [PATCH 07/16] Backup: clear all bitmap when doing block checkpoint, Wen Congyang, 2015/09/02
- [Qemu-block] [PATCH 05/16] introduce a new API qemu_opts_absorb_qdict_by_index(), Wen Congyang, 2015/09/02
- Re: [Qemu-block] [Qemu-devel] [PATCH 05/16] introduce a new API qemu_opts_absorb_qdict_by_index(),
Eric Blake <=
- [Qemu-block] [PATCH 09/16] Allow creating backup jobs when opening BDS, Wen Congyang, 2015/09/02
- [Qemu-block] [PATCH 08/16] block: make bdrv_put_ref_bh_schedule() as a public API, Wen Congyang, 2015/09/02
- [Qemu-block] [PATCH 12/16] skip nbd_target when starting block replication, Wen Congyang, 2015/09/02
- [Qemu-block] [PATCH 13/16] quorum: implement block driver interfaces for block replication, Wen Congyang, 2015/09/02
- [Qemu-block] [PATCH 15/16] support replication driver in blockdev-add, Wen Congyang, 2015/09/02
- [Qemu-block] [PATCH 10/16] docs: block replication's description, Wen Congyang, 2015/09/02