qemu-e2k/qapi
Alberto Garcia 43de7e2de0 block: add a 'blockdev-snapshot' QMP command
One of the limitations of the 'blockdev-snapshot-sync' command is that
it does not allow passing BlockdevOptions to the newly created
snapshots, so they are always opened using the default values.

Extending the command to allow passing options is not a practical
solution because there is overlap between those options and some of
the existing parameters of the command.

This patch introduces a new 'blockdev-snapshot' command with a simpler
interface: it just takes two references to existing block devices that
will be used as the source and target for the snapshot.

Since the main difference between the two commands is that one of them
creates and opens the target image, while the other uses an already
opened one, the bulk of the implementation is shared.

Signed-off-by: Alberto Garcia <berto@igalia.com>
Reviewed-by: Max Reitz <mreitz@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
2015-11-11 16:25:47 +01:00
..
block-core.json block: add a 'blockdev-snapshot' QMP command 2015-11-11 16:25:47 +01:00
block.json qapi: add missing @ 2015-10-08 19:46:47 +03:00
common.json
crypto.json
event.json
introspect.json qapi-introspect: Document lack of sorting 2015-11-10 08:10:28 +01:00
Makefile.objs
opts-visitor.c utils: rename strtosz to use qemu prefix 2015-09-25 12:04:41 +02:00
qapi-dealloc-visitor.c
qapi-util.c
qapi-visit-core.c
qmp-dispatch.c
qmp-event.c
qmp-input-visitor.c qstring: Make conversion from QObject * accept null 2015-10-29 14:34:45 +01:00
qmp-output-visitor.c
qmp-registry.c
rocker.json
string-input-visitor.c
string-output-visitor.c
trace.json