qemu-devel
[Top][All Lists]
Advanced

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

Re: [Qemu-devel] [PATCH v5 06/42] qcow2: Implement .bdrv_storage_child()


From: Vladimir Sementsov-Ogievskiy
Subject: Re: [Qemu-devel] [PATCH v5 06/42] qcow2: Implement .bdrv_storage_child()
Date: Thu, 13 Jun 2019 12:27:11 +0000

13.06.2019 1:09, Max Reitz wrote:
> Signed-off-by: Max Reitz <address@hidden>


Reviewed-by: Vladimir Sementsov-Ogievskiy <address@hidden>

> ---
>   block/qcow2.c | 9 +++++++++
>   1 file changed, 9 insertions(+)
> 
> diff --git a/block/qcow2.c b/block/qcow2.c
> index 9396d490d5..57675c9416 100644
> --- a/block/qcow2.c
> +++ b/block/qcow2.c
> @@ -5085,6 +5085,13 @@ void qcow2_signal_corruption(BlockDriverState *bs, 
> bool fatal, int64_t offset,
>       s->signaled_corruption = true;
>   }
>   
> +static BdrvChild *qcow2_storage_child(BlockDriverState *bs)
> +{
> +    BDRVQcow2State *s = bs->opaque;
> +
> +    return s->data_file;
> +}
> +
>   static QemuOptsList qcow2_create_opts = {
>       .name = "qcow2-create-opts",
>       .head = QTAILQ_HEAD_INITIALIZER(qcow2_create_opts.head),
> @@ -5231,6 +5238,8 @@ BlockDriver bdrv_qcow2 = {
>       .bdrv_reopen_bitmaps_rw = qcow2_reopen_bitmaps_rw,
>       .bdrv_can_store_new_dirty_bitmap = qcow2_can_store_new_dirty_bitmap,
>       .bdrv_remove_persistent_dirty_bitmap = 
> qcow2_remove_persistent_dirty_bitmap,
> +
> +    .bdrv_storage_child = qcow2_storage_child,
>   };
>   
>   static void bdrv_qcow2_init(void)
> 


-- 
Best regards,
Vladimir

reply via email to

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