[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
- Re: [Qemu-devel] [PATCH v5 02/42] copy-on-read: Support compressed writes, (continued)
- [Qemu-devel] [PATCH v5 06/42] qcow2: Implement .bdrv_storage_child(), Max Reitz, 2019/06/12
- Re: [Qemu-devel] [PATCH v5 06/42] qcow2: Implement .bdrv_storage_child(),
Vladimir Sementsov-Ogievskiy <=
- [Qemu-devel] [PATCH v5 10/42] block: Use CAF in bdrv_is_encrypted(), Max Reitz, 2019/06/12
- [Qemu-devel] [PATCH v5 08/42] block: bdrv_set_backing_hd() is about bs->backing, Max Reitz, 2019/06/12
- [Qemu-devel] [PATCH v5 09/42] block: Include filters when freezing backing chain, Max Reitz, 2019/06/12
- [Qemu-devel] [PATCH v5 07/42] block: *filtered_cow_child() for *has_zero_init(), Max Reitz, 2019/06/12