qemu-block
[Top][All Lists]
Advanced

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

Re: [PATCH v3 26/33] block: Use child_of_bds in remaining places


From: Kevin Wolf
Subject: Re: [PATCH v3 26/33] block: Use child_of_bds in remaining places
Date: Wed, 6 May 2020 19:04:26 +0200

Am 18.02.2020 um 13:42 hat Max Reitz geschrieben:
> Replace child_file by child_of_bds in all remaining places (excluding
> tests).
> 
> Signed-off-by: Max Reitz <address@hidden>
> Reviewed-by: Eric Blake <address@hidden>

> diff --git a/block/blkreplay.c b/block/blkreplay.c
> index f97493f45a..71628f4d56 100644
> --- a/block/blkreplay.c
> +++ b/block/blkreplay.c
> @@ -27,8 +27,9 @@ static int blkreplay_open(BlockDriverState *bs, QDict 
> *options, int flags,
>      int ret;
>  
>      /* Open the image file */
> -    bs->file = bdrv_open_child(NULL, options, "image",
> -                               bs, &child_file, 0, false, &local_err);
> +    bs->file = bdrv_open_child(NULL, options, "image", bs, &child_of_bds,
> +                               BDRV_CHILD_DATA | BDRV_CHILD_PRIMARY,
> +                               false, &local_err);

Why isn't blkreplay a filter?

Kevin




reply via email to

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