[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH 4/9] block: Always pass driver name through opti
From: |
Eric Blake |
Subject: |
Re: [Qemu-devel] [PATCH 4/9] block: Always pass driver name through options QDict |
Date: |
Wed, 11 Jun 2014 13:43:06 -0600 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.5.0 |
On 06/11/2014 08:04 AM, Kevin Wolf wrote:
> The "driver" entry in the options QDict is now only missing if we're
> opening an image with format probing.
>
> We also catch cases now where both the drv argument and a "driver"
> option is specified, e.g. by specifying -drive format=qcow2,driver=raw
>
> Signed-off-by: Kevin Wolf <address@hidden>
> ---
> block.c | 76
> ++++++++++++++++++++++++----------------------
> tests/qemu-iotests/051 | 1 +
> tests/qemu-iotests/051.out | 5 ++-
> 3 files changed, 45 insertions(+), 37 deletions(-)
>
> @@ -1062,12 +1061,8 @@ static int bdrv_fill_options(QDict **options, const
> char **pfilename, int flags,
> *pfilename = filename = NULL;
> }
>
> - if (!protocol) {
> - return 0;
> - }
> -
> /* Fetch the file name from the options QDict if necessary */
> - if (filename) {
> + if (protocol && filename) {
> if (filename && !qdict_haskey(*options, "filename")) {
Slight conflict here when you clean up the dead 'filename &&' in patch
1; obvious resolution.
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 1/9] block: Create bdrv_fill_options(), (continued)
- [Qemu-devel] [PATCH 1/9] block: Create bdrv_fill_options(), Kevin Wolf, 2014/06/11
- [Qemu-devel] [PATCH 2/9] block: Move bdrv_fill_options() call to bdrv_open(), Kevin Wolf, 2014/06/11
- [Qemu-devel] [PATCH 3/9] block: Move json: parsing to bdrv_fill_options(), Kevin Wolf, 2014/06/11
- [Qemu-devel] [PATCH 4/9] block: Always pass driver name through options QDict, Kevin Wolf, 2014/06/11
- [Qemu-devel] [PATCH 5/9] block: Use common driver selection code for bdrv_open_file(), Kevin Wolf, 2014/06/11
- [Qemu-devel] [PATCH 6/9] block: Inline bdrv_file_open(), Kevin Wolf, 2014/06/11
- [Qemu-devel] [PATCH 7/9] block: Remove second bdrv_open() recursion, Kevin Wolf, 2014/06/11
- [Qemu-devel] [PATCH 8/9] block: Catch backing files assigned to non-COW drivers, Kevin Wolf, 2014/06/11
- [Qemu-devel] [PATCH 9/9] block: Remove a special case for protocols, Kevin Wolf, 2014/06/11