[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH V2 3/4] blockdev: Allow snapshoting of protocols
From: |
Kevin Wolf |
Subject: |
Re: [Qemu-devel] [PATCH V2 3/4] blockdev: Allow snapshoting of protocols. |
Date: |
Tue, 29 Jan 2013 13:19:19 +0100 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:13.0) Gecko/20120605 Thunderbird/13.0 |
Am 28.01.2013 18:04, schrieb Benoît Canet:
> 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);
> if (ret != 0) {
> error_set(errp, QERR_OPEN_FILE_FAILED, new_image_file);
> goto delete_and_fail;
Wait, what's happening here? I don't understand this patch and how it's
related to snapshotting non-file protocols (if this is even what you
mean). What is your exact scenario, what does the existing code do in
it, and how does this change improve it? An empty commit message is
definitely not appropriate for such a change.
In any case, using NULL as drv for bdrv_open() looks plain wrong.
Kevin
- [Qemu-devel] [PATCH V2 0/4] Pave the way for protocol snapshot creation, Benoît Canet, 2013/01/28
- [Qemu-devel] [PATCH V2 2/4] block: make path_hash_protocol public., Benoît Canet, 2013/01/28
- [Qemu-devel] [PATCH V2 1/4] block: Add option to do external snapshot image creation in the block drivers., Benoît Canet, 2013/01/28
- [Qemu-devel] [PATCH V2 3/4] blockdev: Allow snapshoting of protocols., Benoît Canet, 2013/01/28
- Re: [Qemu-devel] [PATCH V2 3/4] blockdev: Allow snapshoting of protocols.,
Kevin Wolf <=
- Re: [Qemu-devel] [PATCH V2 3/4] blockdev: Allow snapshoting of protocols., Benoît Canet, 2013/01/29
- Re: [Qemu-devel] [PATCH V2 3/4] blockdev: Allow snapshoting of protocols., Kevin Wolf, 2013/01/29
- Re: [Qemu-devel] [PATCH V2 3/4] blockdev: Allow snapshoting of protocols., Benoît Canet, 2013/01/29
- Re: [Qemu-devel] [PATCH V2 3/4] blockdev: Allow snapshoting of protocols., Kevin Wolf, 2013/01/29
- Re: [Qemu-devel] [PATCH V2 3/4] blockdev: Allow snapshoting of protocols., Benoît Canet, 2013/01/29
- Re: [Qemu-devel] [PATCH V2 3/4] blockdev: Allow snapshoting of protocols., Eric Blake, 2013/01/29
- Re: [Qemu-devel] [PATCH V2 3/4] blockdev: Allow snapshoting of protocols., Benoît Canet, 2013/01/29
- Re: [Qemu-devel] [PATCH V2 3/4] blockdev: Allow snapshoting of protocols., Kevin Wolf, 2013/01/29
- Re: [Qemu-devel] [PATCH V2 3/4] blockdev: Allow snapshoting of protocols., Benoît Canet, 2013/01/29
[Qemu-devel] [PATCH V2 4/4] block: Optionally block drivers to optionally reopen images after snapshot creation., Benoît Canet, 2013/01/28