From: Eric Blake <eblake@redhat.com>
To: Pavel Hrdina <phrdina@redhat.com>
Cc: kwolf@redhat.com, qemu-devel@nongnu.org, lcapitulino@redhat.com
Subject: Re: [Qemu-devel] [PATCH v2] qapi: converted commit
Date: Thu, 14 Jun 2012 06:18:07 -0600 [thread overview]
Message-ID: <4FD9D67F.5080505@redhat.com> (raw)
In-Reply-To: <806c66b2f071f03bec0b7d45a71512e394386885.1339617170.git.phrdina@redhat.com>
[-- Attachment #1: Type: text/plain, Size: 1672 bytes --]
On 06/14/2012 01:35 AM, Pavel Hrdina wrote:
> Signed-off-by: Pavel Hrdina <phrdina@redhat.com>
> ---
> +++ b/qapi-schema.json
> @@ -1169,6 +1169,21 @@
> { 'command': 'block_resize', 'data': { 'device': 'str', 'size': 'int' }}
>
> ##
> +# @commit
> +#
> +# Commit changes to the disk images (if -snapshot is used) or backing files.
> +#
> +# @device: the name of the device or the "all" to commit all devices
> +#
> +# Returns: nothing on success
> +# If @device is not a valid block device, DeviceNotFound
> +# If a long-running operation is using the device, DeviceInUse
> +#
> +# Since: 1.2
> +##
> +{ 'command': 'commit', 'data': { 'device': 'str' }}
Should we use this as an opportunity to make the command more powerful?
For example, integrating this with the 'transaction' command or a block
job queried by 'query-block-jobs' to track its progress would be useful.
Also, suppose I have A <- B <- C. Does 'commit' only do one layer (C
into B), or all layers (B and C into A)? That argues that we need an
optional parameter that says how deep to commit (committing C into B
only to repeat and commit B into A is more time-consuming than directly
committing both B and C into A to start with). When a commit is
complete, which file is backing the device - is it still C (which
continues to diverge, but now from the point of the commit) or does qemu
pivot things to have the device now backed by B (and C can be discarded,
particularly true if changes are now going into B which invalidate C).
--
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: 620 bytes --]
next prev parent reply other threads:[~2012-06-14 12:18 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-06-14 7:32 [Qemu-devel] [PATCH] qapi: converted commit Pavel Hrdina
2012-06-14 12:18 ` Eric Blake [this message]
2012-06-14 14:56 ` [Qemu-devel] [PATCH v2] " Pavel Hrdina
2012-06-14 15:04 ` Eric Blake
2012-06-14 15:21 ` Pavel Hrdina
2012-06-15 14:02 ` Luiz Capitulino
2012-06-15 14:11 ` Jeff Cody
2012-06-15 14:44 ` Luiz Capitulino
2012-06-15 15:35 ` Jeff Cody
2012-06-15 13:58 ` Luiz Capitulino
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=4FD9D67F.5080505@redhat.com \
--to=eblake@redhat.com \
--cc=kwolf@redhat.com \
--cc=lcapitulino@redhat.com \
--cc=phrdina@redhat.com \
--cc=qemu-devel@nongnu.org \
/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).