[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH v2 1/9] block: Create bdrv_fill_options()
From: |
Eric Blake |
Subject: |
Re: [Qemu-devel] [PATCH v2 1/9] block: Create bdrv_fill_options() |
Date: |
Wed, 25 Jun 2014 09:37:51 -0600 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.6.0 |
On 06/25/2014 08:35 AM, Kevin Wolf wrote:
> The idea of bdrv_fill_options() is to convert every parameter for
> opening images, in particular the filename and flags, to entries in the
> options QDict.
>
> This patch starts with moving the filename parsing and driver probing
> part from bdrv_file_open() to the new function.
>
> Signed-off-by: Kevin Wolf <address@hidden>
> ---
> block.c | 112
> +++++++++++++++++++++++++++++++++++++++-------------------------
> 1 file changed, 69 insertions(+), 43 deletions(-)
>
> + * Fills in default options for opening images and converts the legacy
> + * filename/flags pair to option QDict entries.
> */
> -static int bdrv_file_open(BlockDriverState *bs, const char *filename,
> - QDict **options, int flags, Error **errp)
> +static int bdrv_fill_options(QDict **options, const char *filename,
> + Error **errp)
Still looks odd to reference filename/flags pair in the comments when
there is no flags argument, but it gets fixed later in the series so I
can overlook it.
Reviewed-by: Eric Blake <address@hidden>
--
Eric Blake eblake redhat com +1-919-301-3266
Libvirt virtualization library http://libvirt.org
signature.asc
Description: OpenPGP digital signature
- [Qemu-devel] [PATCH v2 0/9] bdrv_open() cleanups, part 1, Kevin Wolf, 2014/06/25
- [Qemu-devel] [PATCH v2 2/9] block: Move bdrv_fill_options() call to bdrv_open(), Kevin Wolf, 2014/06/25
- [Qemu-devel] [PATCH v2 1/9] block: Create bdrv_fill_options(), Kevin Wolf, 2014/06/25
- Re: [Qemu-devel] [PATCH v2 1/9] block: Create bdrv_fill_options(),
Eric Blake <=
- [Qemu-devel] [PATCH v2 5/9] block: Use common driver selection code for bdrv_open_file(), Kevin Wolf, 2014/06/25
- [Qemu-devel] [PATCH v2 3/9] block: Move json: parsing to bdrv_fill_options(), Kevin Wolf, 2014/06/25
- [Qemu-devel] [PATCH v2 4/9] block: Always pass driver name through options QDict, Kevin Wolf, 2014/06/25
- [Qemu-devel] [PATCH v2 6/9] block: Inline bdrv_file_open(), Kevin Wolf, 2014/06/25
- [Qemu-devel] [PATCH v2 7/9] block: Remove second bdrv_open() recursion, Kevin Wolf, 2014/06/25
- [Qemu-devel] [PATCH v2 8/9] block: Catch backing files assigned to non-COW drivers, Kevin Wolf, 2014/06/25
- [Qemu-devel] [PATCH v2 9/9] block: Remove a special case for protocols, Kevin Wolf, 2014/06/25