From: Alberto Garcia <berto@igalia.com>
To: qemu-devel@nongnu.org
Cc: Kevin Wolf <kwolf@redhat.com>, Alberto Garcia <berto@igalia.com>,
qemu-block@nongnu.org, Max Reitz <mreitz@redhat.com>,
Stefan Hajnoczi <stefanha@redhat.com>
Subject: [Qemu-devel] [PATCH v2 0/2] Add 'blockdev-snapshot' command
Date: Fri, 4 Sep 2015 15:37:51 +0300 [thread overview]
Message-ID: <cover.1441369227.git.berto@igalia.com> (raw)
Previous attempt to extend blockdev-snapshot-sync:
https://lists.gnu.org/archive/html/qemu-block/2015-08/msg00236.html
As discussed in the previous thread, this adds a new command called
'blockdev-snapshot', that simply takes references to two existing
block devices. I decided to share most of the implementation with the
previous 'blockdev-snapshot-sync' since the only differences are in
the 'prepare' step.
The tests are missing, but I wanted to know first if you are otherwise
OK with this approach. If the patches look good I'll write the tests
next week.
These patches apply on top of two series from Max:
- This one allows creating BDS that are not attached to a BlockBackend
https://lists.gnu.org/archive/html/qemu-block/2015-07/msg00382.html
- This one drops the drv parameter from bdrv_open(), which was
preventing us from creating snapshots of images opened with custom
runtime options:
https://lists.gnu.org/archive/html/qemu-block/2015-08/msg00189.html
You cannot apply these two series cleanly on top of each other, so if
you want to try my patches without having to merge everything
manually, you can get the whole thing here:
https://github.com/bertogg/qemu/commits/blockdev-snapshot
Comments are welcome!
Berto
Alberto Garcia (2):
block: rename BlockdevSnapshot to BlockdevSnapshotSync
block: add a 'blockdev-snapshot' QMP command
blockdev.c | 156 ++++++++++++++++++++++++++++++++-------------------
qapi-schema.json | 3 +-
qapi/block-core.json | 32 ++++++++++-
qmp-commands.hx | 28 +++++++++
4 files changed, 158 insertions(+), 61 deletions(-)
--
2.5.1
next reply other threads:[~2015-09-04 12:38 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-09-04 12:37 Alberto Garcia [this message]
2015-09-04 12:37 ` [Qemu-devel] [PATCH v2 1/2] block: rename BlockdevSnapshot to BlockdevSnapshotSync Alberto Garcia
2015-09-04 14:25 ` Eric Blake
2015-09-04 12:37 ` [Qemu-devel] [PATCH v2 2/2] block: add a 'blockdev-snapshot' QMP command Alberto Garcia
2015-09-04 14:42 ` Eric Blake
2015-09-07 7:59 ` Alberto Garcia
2015-09-07 11:31 ` Alberto Garcia
2015-09-07 14:55 ` Kevin Wolf
2015-09-07 15:06 ` Alberto Garcia
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=cover.1441369227.git.berto@igalia.com \
--to=berto@igalia.com \
--cc=kwolf@redhat.com \
--cc=mreitz@redhat.com \
--cc=qemu-block@nongnu.org \
--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).