qemu-devel
[Top][All Lists]
Advanced

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

Re: [Qemu-devel] [PATCH 3/4] blockdev: Allow snapshoting of protocols.


From: Stefan Hajnoczi
Subject: Re: [Qemu-devel] [PATCH 3/4] blockdev: Allow snapshoting of protocols.
Date: Mon, 28 Jan 2013 16:51:23 +0100
User-agent: Mutt/1.5.21 (2010-09-15)

On Mon, Jan 28, 2013 at 02:22:17PM +0100, Benoît Canet wrote:
> Signed-off-by: Benoit Canet <address@hidden>
> ---
>  blockdev.c |    3 ++-
>  1 file changed, 2 insertions(+), 1 deletion(-)
> 
> diff --git a/blockdev.c b/blockdev.c
> index 0ce45c5..b1f388b 100644
> --- a/blockdev.c
> +++ b/blockdev.c
> @@ -800,7 +800,8 @@ void qmp_transaction(BlockdevActionList *dev_list, Error 
> **errp)
>          /* We will manually add the backing_hd field to the bs later */
>          states->new_bs = bdrv_new("");
>          ret = bdrv_open(states->new_bs, new_image_file,
> -                        flags | BDRV_O_NO_BACKING, drv);
> +                        flags | BDRV_O_NO_BACKING,
> +                        path_has_protocol(new_image_file) ?  NULL : drv);

This seems like a hack.  The reason for doing this is because you don't
want new_image_file to be opened as qcow2, for example.  I don't think
it has much to do with new_image_file specifying a protocol.

Not sure what alternative to propose yet...

Stefan



reply via email to

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