[Qemu-devel] [PATCH 0/2] block/snapshot: Restrict set of snapshot nodes

Kevin Wolf posted 2 patches 6 years, 1 month ago
Test asan passed
Test docker-mingw@fedora passed
Test docker-quick@centos7 passed
Test docker-clang@ubuntu passed
Test checkpatch passed
Test FreeBSD passed
Patches applied successfully (tree, apply log)
git fetch https://github.com/patchew-project/qemu tags/patchew/20190917110443.2029-1-kwolf@redhat.com
Maintainers: Max Reitz <mreitz@redhat.com>, Kevin Wolf <kwolf@redhat.com>
block/snapshot.c                 |  26 +++--
tests/qemu-iotests/267           | 165 ++++++++++++++++++++++++++++
tests/qemu-iotests/267.out       | 182 +++++++++++++++++++++++++++++++
tests/qemu-iotests/common.filter |   5 +-
tests/qemu-iotests/group         |   1 +
5 files changed, 368 insertions(+), 11 deletions(-)
create mode 100755 tests/qemu-iotests/267
create mode 100644 tests/qemu-iotests/267.out
[Qemu-devel] [PATCH 0/2] block/snapshot: Restrict set of snapshot nodes
Posted by Kevin Wolf 6 years, 1 month ago
This fixes internal snapshots with separately defined protocol nodes
(like libvirt will do with -blockdev).

Kevin Wolf (2):
  block/snapshot: Restrict set of snapshot nodes
  iotests: Test internal snapshots with -blockdev

 block/snapshot.c                 |  26 +++--
 tests/qemu-iotests/267           | 165 ++++++++++++++++++++++++++++
 tests/qemu-iotests/267.out       | 182 +++++++++++++++++++++++++++++++
 tests/qemu-iotests/common.filter |   5 +-
 tests/qemu-iotests/group         |   1 +
 5 files changed, 368 insertions(+), 11 deletions(-)
 create mode 100755 tests/qemu-iotests/267
 create mode 100644 tests/qemu-iotests/267.out

-- 
2.20.1


Re: [Qemu-devel] [PATCH 0/2] block/snapshot: Restrict set of snapshot nodes
Posted by Peter Krempa 6 years, 1 month ago
On Tue, Sep 17, 2019 at 13:04:41 +0200, Kevin Wolf wrote:
> This fixes internal snapshots with separately defined protocol nodes
> (like libvirt will do with -blockdev).

The code change is exactly what I thought would be necessary in this
case. I've tested it with my blockdev code in libvirt enabled and all
three internal snapshot commands seem to work as expected even when
fully using blockdev and also only the top layer gets the snapshot.

I'll send patches that attempt adding introspection to allow libvirt
detecting this fix.

Reviewed-by: Peter Krempa <pkrempa@redhat.com>
Tested-by: Peter Krempa <pkrempa@redhat.com>