qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] [PATCH v20 12/26] qcow2.c: replace QEMUOptionParameter


From: Eric Blake
Subject: Re: [Qemu-devel] [PATCH v20 12/26] qcow2.c: replace QEMUOptionParameter with QemuOpts in amend options
Date: Mon, 17 Feb 2014 10:57:20 -0700
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.3.0

On 02/11/2014 11:33 PM, Chunyan Liu wrote:
> qcow2.c: replace QEMUOptionParameter with QemuOpts in 'qemu-img amend'
> 
> Signed-off-by: Dong Xu Wang <address@hidden>
> Signed-off-by: Chunyan Liu <address@hidden>
> ---
>  block.c                   |    4 +-
>  block/qcow2.c             |   90 ++++++++++++++++++++------------------------
>  include/block/block.h     |    2 +-
>  include/block/block_int.h |    2 +-
>  qemu-img.c                |   17 ++++----
>  5 files changed, 53 insertions(+), 62 deletions(-)
> 

> @@ -2228,7 +2220,7 @@ static BlockDriver bdrv_qcow2 = {
>      .bdrv_open          = qcow2_open,
>      .bdrv_close         = qcow2_close,
>      .bdrv_reopen_prepare  = qcow2_reopen_prepare,
> -    .bdrv_create2       = qcow2_create,
> +    .bdrv_create2        = qcow2_create,
>      .bdrv_has_zero_init = bdrv_has_zero_init_1,
>      .bdrv_co_get_block_status = qcow2_co_get_block_status,

Might be worth aligning the = while touching this.

> +++ b/include/block/block_int.h
> @@ -229,7 +229,7 @@ struct BlockDriver {
>          BdrvCheckMode fix);
>  
>      int (*bdrv_amend_options)(BlockDriverState *bs,
> -        QEMUOptionParameter *options);
> +        QemuOpts *opts);

Indentation looks odd here; and with your change to shorter contents,
you can just pull it into one line instead of wrapping and worrying
about indentation in the first place.

-- 
Eric Blake   eblake redhat com    +1-919-301-3266
Libvirt virtualization library http://libvirt.org

Attachment: signature.asc
Description: OpenPGP digital signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]