From: Eric Blake <eblake@redhat.com>
To: Kevin Wolf <kwolf@redhat.com>, qemu-devel@nongnu.org
Cc: stefanha@redhat.com
Subject: Re: [Qemu-devel] [PATCH 1/2] block: Enable BDRV_O_SNAPSHOT with driver-specific options
Date: Tue, 19 Nov 2013 08:52:35 -0700 [thread overview]
Message-ID: <528B8943.3010607@redhat.com> (raw)
In-Reply-To: <1384875448-13115-2-git-send-email-kwolf@redhat.com>
[-- Attachment #1: Type: text/plain, Size: 950 bytes --]
On 11/19/2013 08:37 AM, Kevin Wolf wrote:
> In the case of snapshot=on, don't rely on the backing file path in the
> temporary image any more, but override the backing file with the given
> set of options. This way, block drivers that don't use a file name can
> be accessed with snapshot=on, for example:
>
> -drive file.driver=nbd,file.host=localhost,snapshot=on
>
> Which becomes internally something like:
>
> file.filename=/tmp/vl.AWQZCu,backing.file.driver=nbd,backing.file.host=localhost
[libvirt isn't using snapshot=on, but that doesn't affect the utility of
this patch]
>
> Signed-off-by: Kevin Wolf <kwolf@redhat.com>
> ---
> block.c | 49 +++++++++++++++++++++++--------------------------
> 1 file changed, 23 insertions(+), 26 deletions(-)
>
Reviewed-by: Eric Blake <eblake@redhat.com>
--
Eric Blake eblake redhat com +1-919-301-3266
Libvirt virtualization library http://libvirt.org
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 621 bytes --]
next prev parent reply other threads:[~2013-11-19 15:52 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-11-19 15:37 [Qemu-devel] [PATCH 0/2] block: Enable BDRV_O_SNAPSHOT with driver-specific options Kevin Wolf
2013-11-19 15:37 ` [Qemu-devel] [PATCH 1/2] " Kevin Wolf
2013-11-19 15:52 ` Eric Blake [this message]
2013-11-21 14:33 ` Stefan Hajnoczi
2013-11-21 15:05 ` Kevin Wolf
2013-11-19 15:37 ` [Qemu-devel] [PATCH 2/2] qemu-iotests: Test snapshot mode Kevin Wolf
2013-11-19 15:54 ` Eric Blake
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=528B8943.3010607@redhat.com \
--to=eblake@redhat.com \
--cc=kwolf@redhat.com \
--cc=qemu-devel@nongnu.org \
--cc=stefanha@redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).