|
|
a41c76 |
From 2eb309fcc6bc22e5eff4fe048683176056a43a94 Mon Sep 17 00:00:00 2001
|
|
|
a41c76 |
Message-Id: <2eb309fcc6bc22e5eff4fe048683176056a43a94@dist-git>
|
|
|
a41c76 |
From: Peter Krempa <pkrempa@redhat.com>
|
|
|
a41c76 |
Date: Mon, 16 Mar 2020 22:12:26 +0100
|
|
|
a41c76 |
Subject: [PATCH] qemublocktest: Add more tests for block-commit bitmap
|
|
|
a41c76 |
handling with snapshots
|
|
|
a41c76 |
MIME-Version: 1.0
|
|
|
a41c76 |
Content-Type: text/plain; charset=UTF-8
|
|
|
a41c76 |
Content-Transfer-Encoding: 8bit
|
|
|
a41c76 |
|
|
|
a41c76 |
Test handling of more complex cases of merging bitmaps accross
|
|
|
a41c76 |
snapshots.
|
|
|
a41c76 |
|
|
|
a41c76 |
Signed-off-by: Peter Krempa <pkrempa@redhat.com>
|
|
|
a41c76 |
Reviewed-by: Eric Blake <eblake@redhat.com>
|
|
|
a41c76 |
(cherry picked from commit 8f096cd8808b186d451ec100c646dc8ddd974735)
|
|
|
a41c76 |
https://bugzilla.redhat.com/show_bug.cgi?id=1799013
|
|
|
a41c76 |
Message-Id: <45bfd1540594f663240f64a58a369c31cd83e607.1584391727.git.pkrempa@redhat.com>
|
|
|
a41c76 |
Reviewed-by: Ján Tomko <jtomko@redhat.com>
|
|
|
a41c76 |
---
|
|
|
a41c76 |
tests/qemublocktest.c | 15 ++
|
|
|
a41c76 |
.../bitmapblockcommit/snapshots-1-2 | 49 +++++++
|
|
|
a41c76 |
.../bitmapblockcommit/snapshots-1-3 | 76 ++++++++++
|
|
|
a41c76 |
.../bitmapblockcommit/snapshots-1-4 | 126 +++++++++++++++++
|
|
|
a41c76 |
.../bitmapblockcommit/snapshots-1-5 | 130 ++++++++++++++++++
|
|
|
a41c76 |
.../bitmapblockcommit/snapshots-2-3 | 49 +++++++
|
|
|
a41c76 |
.../bitmapblockcommit/snapshots-2-4 | 99 +++++++++++++
|
|
|
a41c76 |
.../bitmapblockcommit/snapshots-2-5 | 103 ++++++++++++++
|
|
|
a41c76 |
.../bitmapblockcommit/snapshots-3-4 | 72 ++++++++++
|
|
|
a41c76 |
.../bitmapblockcommit/snapshots-3-5 | 76 ++++++++++
|
|
|
a41c76 |
.../bitmapblockcommit/snapshots-4-5 | 33 +++++
|
|
|
a41c76 |
11 files changed, 828 insertions(+)
|
|
|
a41c76 |
create mode 100644 tests/qemublocktestdata/bitmapblockcommit/snapshots-1-2
|
|
|
a41c76 |
create mode 100644 tests/qemublocktestdata/bitmapblockcommit/snapshots-1-3
|
|
|
a41c76 |
create mode 100644 tests/qemublocktestdata/bitmapblockcommit/snapshots-1-4
|
|
|
a41c76 |
create mode 100644 tests/qemublocktestdata/bitmapblockcommit/snapshots-1-5
|
|
|
a41c76 |
create mode 100644 tests/qemublocktestdata/bitmapblockcommit/snapshots-2-3
|
|
|
a41c76 |
create mode 100644 tests/qemublocktestdata/bitmapblockcommit/snapshots-2-4
|
|
|
a41c76 |
create mode 100644 tests/qemublocktestdata/bitmapblockcommit/snapshots-2-5
|
|
|
a41c76 |
create mode 100644 tests/qemublocktestdata/bitmapblockcommit/snapshots-3-4
|
|
|
a41c76 |
create mode 100644 tests/qemublocktestdata/bitmapblockcommit/snapshots-3-5
|
|
|
a41c76 |
create mode 100644 tests/qemublocktestdata/bitmapblockcommit/snapshots-4-5
|
|
|
a41c76 |
|
|
|
a41c76 |
diff --git a/tests/qemublocktest.c b/tests/qemublocktest.c
|
|
|
a41c76 |
index 63ac80b584..ad68b37c80 100644
|
|
|
a41c76 |
--- a/tests/qemublocktest.c
|
|
|
a41c76 |
+++ b/tests/qemublocktest.c
|
|
|
a41c76 |
@@ -1392,6 +1392,21 @@ mymain(void)
|
|
|
a41c76 |
TEST_BITMAP_BLOCKCOMMIT("basic-1-3", 1, 3, "basic");
|
|
|
a41c76 |
TEST_BITMAP_BLOCKCOMMIT("basic-2-3", 2, 3, "basic");
|
|
|
a41c76 |
|
|
|
a41c76 |
+ TEST_BITMAP_BLOCKCOMMIT("snapshots-1-2", 1, 2, "snapshots");
|
|
|
a41c76 |
+ TEST_BITMAP_BLOCKCOMMIT("snapshots-1-3", 1, 3, "snapshots");
|
|
|
a41c76 |
+ TEST_BITMAP_BLOCKCOMMIT("snapshots-1-4", 1, 4, "snapshots");
|
|
|
a41c76 |
+ TEST_BITMAP_BLOCKCOMMIT("snapshots-1-5", 1, 5, "snapshots");
|
|
|
a41c76 |
+
|
|
|
a41c76 |
+ TEST_BITMAP_BLOCKCOMMIT("snapshots-2-3", 2, 3, "snapshots");
|
|
|
a41c76 |
+ TEST_BITMAP_BLOCKCOMMIT("snapshots-2-4", 2, 4, "snapshots");
|
|
|
a41c76 |
+ TEST_BITMAP_BLOCKCOMMIT("snapshots-2-5", 2, 5, "snapshots");
|
|
|
a41c76 |
+
|
|
|
a41c76 |
+ TEST_BITMAP_BLOCKCOMMIT("snapshots-3-4", 3, 4, "snapshots");
|
|
|
a41c76 |
+ TEST_BITMAP_BLOCKCOMMIT("snapshots-3-5", 3, 5, "snapshots");
|
|
|
a41c76 |
+
|
|
|
a41c76 |
+ TEST_BITMAP_BLOCKCOMMIT("snapshots-4-5", 4, 5, "snapshots");
|
|
|
a41c76 |
+
|
|
|
a41c76 |
+
|
|
|
a41c76 |
cleanup:
|
|
|
a41c76 |
qemuTestDriverFree(&driver);
|
|
|
a41c76 |
VIR_FREE(capslatest_x86_64);
|
|
|
a41c76 |
diff --git a/tests/qemublocktestdata/bitmapblockcommit/snapshots-1-2 b/tests/qemublocktestdata/bitmapblockcommit/snapshots-1-2
|
|
|
a41c76 |
new file mode 100644
|
|
|
a41c76 |
index 0000000000..0015b9ceb3
|
|
|
a41c76 |
--- /dev/null
|
|
|
a41c76 |
+++ b/tests/qemublocktestdata/bitmapblockcommit/snapshots-1-2
|
|
|
a41c76 |
@@ -0,0 +1,49 @@
|
|
|
a41c76 |
+pre job bitmap disable:
|
|
|
a41c76 |
+[
|
|
|
a41c76 |
+ {
|
|
|
a41c76 |
+ "type": "block-dirty-bitmap-disable",
|
|
|
a41c76 |
+ "data": {
|
|
|
a41c76 |
+ "node": "libvirt-2-format",
|
|
|
a41c76 |
+ "name": "d"
|
|
|
a41c76 |
+ }
|
|
|
a41c76 |
+ }
|
|
|
a41c76 |
+]
|
|
|
a41c76 |
+merge bitmpas:
|
|
|
a41c76 |
+[
|
|
|
a41c76 |
+ {
|
|
|
a41c76 |
+ "type": "block-dirty-bitmap-add",
|
|
|
a41c76 |
+ "data": {
|
|
|
a41c76 |
+ "node": "libvirt-2-format",
|
|
|
a41c76 |
+ "name": "current",
|
|
|
a41c76 |
+ "persistent": true,
|
|
|
a41c76 |
+ "disabled": false,
|
|
|
a41c76 |
+ "granularity": 65536
|
|
|
a41c76 |
+ }
|
|
|
a41c76 |
+ },
|
|
|
a41c76 |
+ {
|
|
|
a41c76 |
+ "type": "block-dirty-bitmap-merge",
|
|
|
a41c76 |
+ "data": {
|
|
|
a41c76 |
+ "node": "libvirt-2-format",
|
|
|
a41c76 |
+ "target": "current",
|
|
|
a41c76 |
+ "bitmaps": [
|
|
|
a41c76 |
+ {
|
|
|
a41c76 |
+ "node": "libvirt-1-format",
|
|
|
a41c76 |
+ "name": "current"
|
|
|
a41c76 |
+ }
|
|
|
a41c76 |
+ ]
|
|
|
a41c76 |
+ }
|
|
|
a41c76 |
+ },
|
|
|
a41c76 |
+ {
|
|
|
a41c76 |
+ "type": "block-dirty-bitmap-merge",
|
|
|
a41c76 |
+ "data": {
|
|
|
a41c76 |
+ "node": "libvirt-2-format",
|
|
|
a41c76 |
+ "target": "d",
|
|
|
a41c76 |
+ "bitmaps": [
|
|
|
a41c76 |
+ {
|
|
|
a41c76 |
+ "node": "libvirt-1-format",
|
|
|
a41c76 |
+ "name": "d"
|
|
|
a41c76 |
+ }
|
|
|
a41c76 |
+ ]
|
|
|
a41c76 |
+ }
|
|
|
a41c76 |
+ }
|
|
|
a41c76 |
+]
|
|
|
a41c76 |
diff --git a/tests/qemublocktestdata/bitmapblockcommit/snapshots-1-3 b/tests/qemublocktestdata/bitmapblockcommit/snapshots-1-3
|
|
|
a41c76 |
new file mode 100644
|
|
|
a41c76 |
index 0000000000..5691b408aa
|
|
|
a41c76 |
--- /dev/null
|
|
|
a41c76 |
+++ b/tests/qemublocktestdata/bitmapblockcommit/snapshots-1-3
|
|
|
a41c76 |
@@ -0,0 +1,76 @@
|
|
|
a41c76 |
+pre job bitmap disable:
|
|
|
a41c76 |
+[
|
|
|
a41c76 |
+ {
|
|
|
a41c76 |
+ "type": "block-dirty-bitmap-disable",
|
|
|
a41c76 |
+ "data": {
|
|
|
a41c76 |
+ "node": "libvirt-3-format",
|
|
|
a41c76 |
+ "name": "c"
|
|
|
a41c76 |
+ }
|
|
|
a41c76 |
+ }
|
|
|
a41c76 |
+]
|
|
|
a41c76 |
+merge bitmpas:
|
|
|
a41c76 |
+[
|
|
|
a41c76 |
+ {
|
|
|
a41c76 |
+ "type": "block-dirty-bitmap-add",
|
|
|
a41c76 |
+ "data": {
|
|
|
a41c76 |
+ "node": "libvirt-3-format",
|
|
|
a41c76 |
+ "name": "current",
|
|
|
a41c76 |
+ "persistent": true,
|
|
|
a41c76 |
+ "disabled": false,
|
|
|
a41c76 |
+ "granularity": 65536
|
|
|
a41c76 |
+ }
|
|
|
a41c76 |
+ },
|
|
|
a41c76 |
+ {
|
|
|
a41c76 |
+ "type": "block-dirty-bitmap-merge",
|
|
|
a41c76 |
+ "data": {
|
|
|
a41c76 |
+ "node": "libvirt-3-format",
|
|
|
a41c76 |
+ "target": "current",
|
|
|
a41c76 |
+ "bitmaps": [
|
|
|
a41c76 |
+ {
|
|
|
a41c76 |
+ "node": "libvirt-1-format",
|
|
|
a41c76 |
+ "name": "current"
|
|
|
a41c76 |
+ }
|
|
|
a41c76 |
+ ]
|
|
|
a41c76 |
+ }
|
|
|
a41c76 |
+ },
|
|
|
a41c76 |
+ {
|
|
|
a41c76 |
+ "type": "block-dirty-bitmap-merge",
|
|
|
a41c76 |
+ "data": {
|
|
|
a41c76 |
+ "node": "libvirt-3-format",
|
|
|
a41c76 |
+ "target": "c",
|
|
|
a41c76 |
+ "bitmaps": [
|
|
|
a41c76 |
+ {
|
|
|
a41c76 |
+ "node": "libvirt-2-format",
|
|
|
a41c76 |
+ "name": "c"
|
|
|
a41c76 |
+ }
|
|
|
a41c76 |
+ ]
|
|
|
a41c76 |
+ }
|
|
|
a41c76 |
+ },
|
|
|
a41c76 |
+ {
|
|
|
a41c76 |
+ "type": "block-dirty-bitmap-add",
|
|
|
a41c76 |
+ "data": {
|
|
|
a41c76 |
+ "node": "libvirt-3-format",
|
|
|
a41c76 |
+ "name": "d",
|
|
|
a41c76 |
+ "persistent": true,
|
|
|
a41c76 |
+ "disabled": true,
|
|
|
a41c76 |
+ "granularity": 65536
|
|
|
a41c76 |
+ }
|
|
|
a41c76 |
+ },
|
|
|
a41c76 |
+ {
|
|
|
a41c76 |
+ "type": "block-dirty-bitmap-merge",
|
|
|
a41c76 |
+ "data": {
|
|
|
a41c76 |
+ "node": "libvirt-3-format",
|
|
|
a41c76 |
+ "target": "d",
|
|
|
a41c76 |
+ "bitmaps": [
|
|
|
a41c76 |
+ {
|
|
|
a41c76 |
+ "node": "libvirt-1-format",
|
|
|
a41c76 |
+ "name": "d"
|
|
|
a41c76 |
+ },
|
|
|
a41c76 |
+ {
|
|
|
a41c76 |
+ "node": "libvirt-2-format",
|
|
|
a41c76 |
+ "name": "d"
|
|
|
a41c76 |
+ }
|
|
|
a41c76 |
+ ]
|
|
|
a41c76 |
+ }
|
|
|
a41c76 |
+ }
|
|
|
a41c76 |
+]
|
|
|
a41c76 |
diff --git a/tests/qemublocktestdata/bitmapblockcommit/snapshots-1-4 b/tests/qemublocktestdata/bitmapblockcommit/snapshots-1-4
|
|
|
a41c76 |
new file mode 100644
|
|
|
a41c76 |
index 0000000000..454001531a
|
|
|
a41c76 |
--- /dev/null
|
|
|
a41c76 |
+++ b/tests/qemublocktestdata/bitmapblockcommit/snapshots-1-4
|
|
|
a41c76 |
@@ -0,0 +1,126 @@
|
|
|
a41c76 |
+pre job bitmap disable:
|
|
|
a41c76 |
+[
|
|
|
a41c76 |
+ {
|
|
|
a41c76 |
+ "type": "block-dirty-bitmap-disable",
|
|
|
a41c76 |
+ "data": {
|
|
|
a41c76 |
+ "node": "libvirt-4-format",
|
|
|
a41c76 |
+ "name": "a"
|
|
|
a41c76 |
+ }
|
|
|
a41c76 |
+ }
|
|
|
a41c76 |
+]
|
|
|
a41c76 |
+merge bitmpas:
|
|
|
a41c76 |
+[
|
|
|
a41c76 |
+ {
|
|
|
a41c76 |
+ "type": "block-dirty-bitmap-merge",
|
|
|
a41c76 |
+ "data": {
|
|
|
a41c76 |
+ "node": "libvirt-4-format",
|
|
|
a41c76 |
+ "target": "a",
|
|
|
a41c76 |
+ "bitmaps": [
|
|
|
a41c76 |
+ {
|
|
|
a41c76 |
+ "node": "libvirt-3-format",
|
|
|
a41c76 |
+ "name": "a"
|
|
|
a41c76 |
+ }
|
|
|
a41c76 |
+ ]
|
|
|
a41c76 |
+ }
|
|
|
a41c76 |
+ },
|
|
|
a41c76 |
+ {
|
|
|
a41c76 |
+ "type": "block-dirty-bitmap-add",
|
|
|
a41c76 |
+ "data": {
|
|
|
a41c76 |
+ "node": "libvirt-4-format",
|
|
|
a41c76 |
+ "name": "b",
|
|
|
a41c76 |
+ "persistent": true,
|
|
|
a41c76 |
+ "disabled": true,
|
|
|
a41c76 |
+ "granularity": 65536
|
|
|
a41c76 |
+ }
|
|
|
a41c76 |
+ },
|
|
|
a41c76 |
+ {
|
|
|
a41c76 |
+ "type": "block-dirty-bitmap-merge",
|
|
|
a41c76 |
+ "data": {
|
|
|
a41c76 |
+ "node": "libvirt-4-format",
|
|
|
a41c76 |
+ "target": "b",
|
|
|
a41c76 |
+ "bitmaps": [
|
|
|
a41c76 |
+ {
|
|
|
a41c76 |
+ "node": "libvirt-3-format",
|
|
|
a41c76 |
+ "name": "b"
|
|
|
a41c76 |
+ }
|
|
|
a41c76 |
+ ]
|
|
|
a41c76 |
+ }
|
|
|
a41c76 |
+ },
|
|
|
a41c76 |
+ {
|
|
|
a41c76 |
+ "type": "block-dirty-bitmap-add",
|
|
|
a41c76 |
+ "data": {
|
|
|
a41c76 |
+ "node": "libvirt-4-format",
|
|
|
a41c76 |
+ "name": "current",
|
|
|
a41c76 |
+ "persistent": true,
|
|
|
a41c76 |
+ "disabled": false,
|
|
|
a41c76 |
+ "granularity": 65536
|
|
|
a41c76 |
+ }
|
|
|
a41c76 |
+ },
|
|
|
a41c76 |
+ {
|
|
|
a41c76 |
+ "type": "block-dirty-bitmap-merge",
|
|
|
a41c76 |
+ "data": {
|
|
|
a41c76 |
+ "node": "libvirt-4-format",
|
|
|
a41c76 |
+ "target": "current",
|
|
|
a41c76 |
+ "bitmaps": [
|
|
|
a41c76 |
+ {
|
|
|
a41c76 |
+ "node": "libvirt-1-format",
|
|
|
a41c76 |
+ "name": "current"
|
|
|
a41c76 |
+ }
|
|
|
a41c76 |
+ ]
|
|
|
a41c76 |
+ }
|
|
|
a41c76 |
+ },
|
|
|
a41c76 |
+ {
|
|
|
a41c76 |
+ "type": "block-dirty-bitmap-add",
|
|
|
a41c76 |
+ "data": {
|
|
|
a41c76 |
+ "node": "libvirt-4-format",
|
|
|
a41c76 |
+ "name": "c",
|
|
|
a41c76 |
+ "persistent": true,
|
|
|
a41c76 |
+ "disabled": true,
|
|
|
a41c76 |
+ "granularity": 65536
|
|
|
a41c76 |
+ }
|
|
|
a41c76 |
+ },
|
|
|
a41c76 |
+ {
|
|
|
a41c76 |
+ "type": "block-dirty-bitmap-merge",
|
|
|
a41c76 |
+ "data": {
|
|
|
a41c76 |
+ "node": "libvirt-4-format",
|
|
|
a41c76 |
+ "target": "c",
|
|
|
a41c76 |
+ "bitmaps": [
|
|
|
a41c76 |
+ {
|
|
|
a41c76 |
+ "node": "libvirt-2-format",
|
|
|
a41c76 |
+ "name": "c"
|
|
|
a41c76 |
+ },
|
|
|
a41c76 |
+ {
|
|
|
a41c76 |
+ "node": "libvirt-3-format",
|
|
|
a41c76 |
+ "name": "c"
|
|
|
a41c76 |
+ }
|
|
|
a41c76 |
+ ]
|
|
|
a41c76 |
+ }
|
|
|
a41c76 |
+ },
|
|
|
a41c76 |
+ {
|
|
|
a41c76 |
+ "type": "block-dirty-bitmap-add",
|
|
|
a41c76 |
+ "data": {
|
|
|
a41c76 |
+ "node": "libvirt-4-format",
|
|
|
a41c76 |
+ "name": "d",
|
|
|
a41c76 |
+ "persistent": true,
|
|
|
a41c76 |
+ "disabled": true,
|
|
|
a41c76 |
+ "granularity": 65536
|
|
|
a41c76 |
+ }
|
|
|
a41c76 |
+ },
|
|
|
a41c76 |
+ {
|
|
|
a41c76 |
+ "type": "block-dirty-bitmap-merge",
|
|
|
a41c76 |
+ "data": {
|
|
|
a41c76 |
+ "node": "libvirt-4-format",
|
|
|
a41c76 |
+ "target": "d",
|
|
|
a41c76 |
+ "bitmaps": [
|
|
|
a41c76 |
+ {
|
|
|
a41c76 |
+ "node": "libvirt-1-format",
|
|
|
a41c76 |
+ "name": "d"
|
|
|
a41c76 |
+ },
|
|
|
a41c76 |
+ {
|
|
|
a41c76 |
+ "node": "libvirt-2-format",
|
|
|
a41c76 |
+ "name": "d"
|
|
|
a41c76 |
+ }
|
|
|
a41c76 |
+ ]
|
|
|
a41c76 |
+ }
|
|
|
a41c76 |
+ }
|
|
|
a41c76 |
+]
|
|
|
a41c76 |
diff --git a/tests/qemublocktestdata/bitmapblockcommit/snapshots-1-5 b/tests/qemublocktestdata/bitmapblockcommit/snapshots-1-5
|
|
|
a41c76 |
new file mode 100644
|
|
|
a41c76 |
index 0000000000..2fd43d7917
|
|
|
a41c76 |
--- /dev/null
|
|
|
a41c76 |
+++ b/tests/qemublocktestdata/bitmapblockcommit/snapshots-1-5
|
|
|
a41c76 |
@@ -0,0 +1,130 @@
|
|
|
a41c76 |
+pre job bitmap disable:
|
|
|
a41c76 |
+[
|
|
|
a41c76 |
+ {
|
|
|
a41c76 |
+ "type": "block-dirty-bitmap-disable",
|
|
|
a41c76 |
+ "data": {
|
|
|
a41c76 |
+ "node": "libvirt-5-format",
|
|
|
a41c76 |
+ "name": "a"
|
|
|
a41c76 |
+ }
|
|
|
a41c76 |
+ }
|
|
|
a41c76 |
+]
|
|
|
a41c76 |
+merge bitmpas:
|
|
|
a41c76 |
+[
|
|
|
a41c76 |
+ {
|
|
|
a41c76 |
+ "type": "block-dirty-bitmap-merge",
|
|
|
a41c76 |
+ "data": {
|
|
|
a41c76 |
+ "node": "libvirt-5-format",
|
|
|
a41c76 |
+ "target": "a",
|
|
|
a41c76 |
+ "bitmaps": [
|
|
|
a41c76 |
+ {
|
|
|
a41c76 |
+ "node": "libvirt-3-format",
|
|
|
a41c76 |
+ "name": "a"
|
|
|
a41c76 |
+ },
|
|
|
a41c76 |
+ {
|
|
|
a41c76 |
+ "node": "libvirt-4-format",
|
|
|
a41c76 |
+ "name": "a"
|
|
|
a41c76 |
+ }
|
|
|
a41c76 |
+ ]
|
|
|
a41c76 |
+ }
|
|
|
a41c76 |
+ },
|
|
|
a41c76 |
+ {
|
|
|
a41c76 |
+ "type": "block-dirty-bitmap-add",
|
|
|
a41c76 |
+ "data": {
|
|
|
a41c76 |
+ "node": "libvirt-5-format",
|
|
|
a41c76 |
+ "name": "b",
|
|
|
a41c76 |
+ "persistent": true,
|
|
|
a41c76 |
+ "disabled": true,
|
|
|
a41c76 |
+ "granularity": 65536
|
|
|
a41c76 |
+ }
|
|
|
a41c76 |
+ },
|
|
|
a41c76 |
+ {
|
|
|
a41c76 |
+ "type": "block-dirty-bitmap-merge",
|
|
|
a41c76 |
+ "data": {
|
|
|
a41c76 |
+ "node": "libvirt-5-format",
|
|
|
a41c76 |
+ "target": "b",
|
|
|
a41c76 |
+ "bitmaps": [
|
|
|
a41c76 |
+ {
|
|
|
a41c76 |
+ "node": "libvirt-3-format",
|
|
|
a41c76 |
+ "name": "b"
|
|
|
a41c76 |
+ }
|
|
|
a41c76 |
+ ]
|
|
|
a41c76 |
+ }
|
|
|
a41c76 |
+ },
|
|
|
a41c76 |
+ {
|
|
|
a41c76 |
+ "type": "block-dirty-bitmap-add",
|
|
|
a41c76 |
+ "data": {
|
|
|
a41c76 |
+ "node": "libvirt-5-format",
|
|
|
a41c76 |
+ "name": "current",
|
|
|
a41c76 |
+ "persistent": true,
|
|
|
a41c76 |
+ "disabled": false,
|
|
|
a41c76 |
+ "granularity": 65536
|
|
|
a41c76 |
+ }
|
|
|
a41c76 |
+ },
|
|
|
a41c76 |
+ {
|
|
|
a41c76 |
+ "type": "block-dirty-bitmap-merge",
|
|
|
a41c76 |
+ "data": {
|
|
|
a41c76 |
+ "node": "libvirt-5-format",
|
|
|
a41c76 |
+ "target": "current",
|
|
|
a41c76 |
+ "bitmaps": [
|
|
|
a41c76 |
+ {
|
|
|
a41c76 |
+ "node": "libvirt-1-format",
|
|
|
a41c76 |
+ "name": "current"
|
|
|
a41c76 |
+ }
|
|
|
a41c76 |
+ ]
|
|
|
a41c76 |
+ }
|
|
|
a41c76 |
+ },
|
|
|
a41c76 |
+ {
|
|
|
a41c76 |
+ "type": "block-dirty-bitmap-add",
|
|
|
a41c76 |
+ "data": {
|
|
|
a41c76 |
+ "node": "libvirt-5-format",
|
|
|
a41c76 |
+ "name": "c",
|
|
|
a41c76 |
+ "persistent": true,
|
|
|
a41c76 |
+ "disabled": true,
|
|
|
a41c76 |
+ "granularity": 65536
|
|
|
a41c76 |
+ }
|
|
|
a41c76 |
+ },
|
|
|
a41c76 |
+ {
|
|
|
a41c76 |
+ "type": "block-dirty-bitmap-merge",
|
|
|
a41c76 |
+ "data": {
|
|
|
a41c76 |
+ "node": "libvirt-5-format",
|
|
|
a41c76 |
+ "target": "c",
|
|
|
a41c76 |
+ "bitmaps": [
|
|
|
a41c76 |
+ {
|
|
|
a41c76 |
+ "node": "libvirt-2-format",
|
|
|
a41c76 |
+ "name": "c"
|
|
|
a41c76 |
+ },
|
|
|
a41c76 |
+ {
|
|
|
a41c76 |
+ "node": "libvirt-3-format",
|
|
|
a41c76 |
+ "name": "c"
|
|
|
a41c76 |
+ }
|
|
|
a41c76 |
+ ]
|
|
|
a41c76 |
+ }
|
|
|
a41c76 |
+ },
|
|
|
a41c76 |
+ {
|
|
|
a41c76 |
+ "type": "block-dirty-bitmap-add",
|
|
|
a41c76 |
+ "data": {
|
|
|
a41c76 |
+ "node": "libvirt-5-format",
|
|
|
a41c76 |
+ "name": "d",
|
|
|
a41c76 |
+ "persistent": true,
|
|
|
a41c76 |
+ "disabled": true,
|
|
|
a41c76 |
+ "granularity": 65536
|
|
|
a41c76 |
+ }
|
|
|
a41c76 |
+ },
|
|
|
a41c76 |
+ {
|
|
|
a41c76 |
+ "type": "block-dirty-bitmap-merge",
|
|
|
a41c76 |
+ "data": {
|
|
|
a41c76 |
+ "node": "libvirt-5-format",
|
|
|
a41c76 |
+ "target": "d",
|
|
|
a41c76 |
+ "bitmaps": [
|
|
|
a41c76 |
+ {
|
|
|
a41c76 |
+ "node": "libvirt-1-format",
|
|
|
a41c76 |
+ "name": "d"
|
|
|
a41c76 |
+ },
|
|
|
a41c76 |
+ {
|
|
|
a41c76 |
+ "node": "libvirt-2-format",
|
|
|
a41c76 |
+ "name": "d"
|
|
|
a41c76 |
+ }
|
|
|
a41c76 |
+ ]
|
|
|
a41c76 |
+ }
|
|
|
a41c76 |
+ }
|
|
|
a41c76 |
+]
|
|
|
a41c76 |
diff --git a/tests/qemublocktestdata/bitmapblockcommit/snapshots-2-3 b/tests/qemublocktestdata/bitmapblockcommit/snapshots-2-3
|
|
|
a41c76 |
new file mode 100644
|
|
|
a41c76 |
index 0000000000..d719a90bd7
|
|
|
a41c76 |
--- /dev/null
|
|
|
a41c76 |
+++ b/tests/qemublocktestdata/bitmapblockcommit/snapshots-2-3
|
|
|
a41c76 |
@@ -0,0 +1,49 @@
|
|
|
a41c76 |
+pre job bitmap disable:
|
|
|
a41c76 |
+[
|
|
|
a41c76 |
+ {
|
|
|
a41c76 |
+ "type": "block-dirty-bitmap-disable",
|
|
|
a41c76 |
+ "data": {
|
|
|
a41c76 |
+ "node": "libvirt-3-format",
|
|
|
a41c76 |
+ "name": "c"
|
|
|
a41c76 |
+ }
|
|
|
a41c76 |
+ }
|
|
|
a41c76 |
+]
|
|
|
a41c76 |
+merge bitmpas:
|
|
|
a41c76 |
+[
|
|
|
a41c76 |
+ {
|
|
|
a41c76 |
+ "type": "block-dirty-bitmap-merge",
|
|
|
a41c76 |
+ "data": {
|
|
|
a41c76 |
+ "node": "libvirt-3-format",
|
|
|
a41c76 |
+ "target": "c",
|
|
|
a41c76 |
+ "bitmaps": [
|
|
|
a41c76 |
+ {
|
|
|
a41c76 |
+ "node": "libvirt-2-format",
|
|
|
a41c76 |
+ "name": "c"
|
|
|
a41c76 |
+ }
|
|
|
a41c76 |
+ ]
|
|
|
a41c76 |
+ }
|
|
|
a41c76 |
+ },
|
|
|
a41c76 |
+ {
|
|
|
a41c76 |
+ "type": "block-dirty-bitmap-add",
|
|
|
a41c76 |
+ "data": {
|
|
|
a41c76 |
+ "node": "libvirt-3-format",
|
|
|
a41c76 |
+ "name": "d",
|
|
|
a41c76 |
+ "persistent": true,
|
|
|
a41c76 |
+ "disabled": false,
|
|
|
a41c76 |
+ "granularity": 65536
|
|
|
a41c76 |
+ }
|
|
|
a41c76 |
+ },
|
|
|
a41c76 |
+ {
|
|
|
a41c76 |
+ "type": "block-dirty-bitmap-merge",
|
|
|
a41c76 |
+ "data": {
|
|
|
a41c76 |
+ "node": "libvirt-3-format",
|
|
|
a41c76 |
+ "target": "d",
|
|
|
a41c76 |
+ "bitmaps": [
|
|
|
a41c76 |
+ {
|
|
|
a41c76 |
+ "node": "libvirt-2-format",
|
|
|
a41c76 |
+ "name": "d"
|
|
|
a41c76 |
+ }
|
|
|
a41c76 |
+ ]
|
|
|
a41c76 |
+ }
|
|
|
a41c76 |
+ }
|
|
|
a41c76 |
+]
|
|
|
a41c76 |
diff --git a/tests/qemublocktestdata/bitmapblockcommit/snapshots-2-4 b/tests/qemublocktestdata/bitmapblockcommit/snapshots-2-4
|
|
|
a41c76 |
new file mode 100644
|
|
|
a41c76 |
index 0000000000..9e37962344
|
|
|
a41c76 |
--- /dev/null
|
|
|
a41c76 |
+++ b/tests/qemublocktestdata/bitmapblockcommit/snapshots-2-4
|
|
|
a41c76 |
@@ -0,0 +1,99 @@
|
|
|
a41c76 |
+pre job bitmap disable:
|
|
|
a41c76 |
+[
|
|
|
a41c76 |
+ {
|
|
|
a41c76 |
+ "type": "block-dirty-bitmap-disable",
|
|
|
a41c76 |
+ "data": {
|
|
|
a41c76 |
+ "node": "libvirt-4-format",
|
|
|
a41c76 |
+ "name": "a"
|
|
|
a41c76 |
+ }
|
|
|
a41c76 |
+ }
|
|
|
a41c76 |
+]
|
|
|
a41c76 |
+merge bitmpas:
|
|
|
a41c76 |
+[
|
|
|
a41c76 |
+ {
|
|
|
a41c76 |
+ "type": "block-dirty-bitmap-merge",
|
|
|
a41c76 |
+ "data": {
|
|
|
a41c76 |
+ "node": "libvirt-4-format",
|
|
|
a41c76 |
+ "target": "a",
|
|
|
a41c76 |
+ "bitmaps": [
|
|
|
a41c76 |
+ {
|
|
|
a41c76 |
+ "node": "libvirt-3-format",
|
|
|
a41c76 |
+ "name": "a"
|
|
|
a41c76 |
+ }
|
|
|
a41c76 |
+ ]
|
|
|
a41c76 |
+ }
|
|
|
a41c76 |
+ },
|
|
|
a41c76 |
+ {
|
|
|
a41c76 |
+ "type": "block-dirty-bitmap-add",
|
|
|
a41c76 |
+ "data": {
|
|
|
a41c76 |
+ "node": "libvirt-4-format",
|
|
|
a41c76 |
+ "name": "b",
|
|
|
a41c76 |
+ "persistent": true,
|
|
|
a41c76 |
+ "disabled": true,
|
|
|
a41c76 |
+ "granularity": 65536
|
|
|
a41c76 |
+ }
|
|
|
a41c76 |
+ },
|
|
|
a41c76 |
+ {
|
|
|
a41c76 |
+ "type": "block-dirty-bitmap-merge",
|
|
|
a41c76 |
+ "data": {
|
|
|
a41c76 |
+ "node": "libvirt-4-format",
|
|
|
a41c76 |
+ "target": "b",
|
|
|
a41c76 |
+ "bitmaps": [
|
|
|
a41c76 |
+ {
|
|
|
a41c76 |
+ "node": "libvirt-3-format",
|
|
|
a41c76 |
+ "name": "b"
|
|
|
a41c76 |
+ }
|
|
|
a41c76 |
+ ]
|
|
|
a41c76 |
+ }
|
|
|
a41c76 |
+ },
|
|
|
a41c76 |
+ {
|
|
|
a41c76 |
+ "type": "block-dirty-bitmap-add",
|
|
|
a41c76 |
+ "data": {
|
|
|
a41c76 |
+ "node": "libvirt-4-format",
|
|
|
a41c76 |
+ "name": "c",
|
|
|
a41c76 |
+ "persistent": true,
|
|
|
a41c76 |
+ "disabled": true,
|
|
|
a41c76 |
+ "granularity": 65536
|
|
|
a41c76 |
+ }
|
|
|
a41c76 |
+ },
|
|
|
a41c76 |
+ {
|
|
|
a41c76 |
+ "type": "block-dirty-bitmap-merge",
|
|
|
a41c76 |
+ "data": {
|
|
|
a41c76 |
+ "node": "libvirt-4-format",
|
|
|
a41c76 |
+ "target": "c",
|
|
|
a41c76 |
+ "bitmaps": [
|
|
|
a41c76 |
+ {
|
|
|
a41c76 |
+ "node": "libvirt-2-format",
|
|
|
a41c76 |
+ "name": "c"
|
|
|
a41c76 |
+ },
|
|
|
a41c76 |
+ {
|
|
|
a41c76 |
+ "node": "libvirt-3-format",
|
|
|
a41c76 |
+ "name": "c"
|
|
|
a41c76 |
+ }
|
|
|
a41c76 |
+ ]
|
|
|
a41c76 |
+ }
|
|
|
a41c76 |
+ },
|
|
|
a41c76 |
+ {
|
|
|
a41c76 |
+ "type": "block-dirty-bitmap-add",
|
|
|
a41c76 |
+ "data": {
|
|
|
a41c76 |
+ "node": "libvirt-4-format",
|
|
|
a41c76 |
+ "name": "d",
|
|
|
a41c76 |
+ "persistent": true,
|
|
|
a41c76 |
+ "disabled": false,
|
|
|
a41c76 |
+ "granularity": 65536
|
|
|
a41c76 |
+ }
|
|
|
a41c76 |
+ },
|
|
|
a41c76 |
+ {
|
|
|
a41c76 |
+ "type": "block-dirty-bitmap-merge",
|
|
|
a41c76 |
+ "data": {
|
|
|
a41c76 |
+ "node": "libvirt-4-format",
|
|
|
a41c76 |
+ "target": "d",
|
|
|
a41c76 |
+ "bitmaps": [
|
|
|
a41c76 |
+ {
|
|
|
a41c76 |
+ "node": "libvirt-2-format",
|
|
|
a41c76 |
+ "name": "d"
|
|
|
a41c76 |
+ }
|
|
|
a41c76 |
+ ]
|
|
|
a41c76 |
+ }
|
|
|
a41c76 |
+ }
|
|
|
a41c76 |
+]
|
|
|
a41c76 |
diff --git a/tests/qemublocktestdata/bitmapblockcommit/snapshots-2-5 b/tests/qemublocktestdata/bitmapblockcommit/snapshots-2-5
|
|
|
a41c76 |
new file mode 100644
|
|
|
a41c76 |
index 0000000000..d6b20a5d05
|
|
|
a41c76 |
--- /dev/null
|
|
|
a41c76 |
+++ b/tests/qemublocktestdata/bitmapblockcommit/snapshots-2-5
|
|
|
a41c76 |
@@ -0,0 +1,103 @@
|
|
|
a41c76 |
+pre job bitmap disable:
|
|
|
a41c76 |
+[
|
|
|
a41c76 |
+ {
|
|
|
a41c76 |
+ "type": "block-dirty-bitmap-disable",
|
|
|
a41c76 |
+ "data": {
|
|
|
a41c76 |
+ "node": "libvirt-5-format",
|
|
|
a41c76 |
+ "name": "a"
|
|
|
a41c76 |
+ }
|
|
|
a41c76 |
+ }
|
|
|
a41c76 |
+]
|
|
|
a41c76 |
+merge bitmpas:
|
|
|
a41c76 |
+[
|
|
|
a41c76 |
+ {
|
|
|
a41c76 |
+ "type": "block-dirty-bitmap-merge",
|
|
|
a41c76 |
+ "data": {
|
|
|
a41c76 |
+ "node": "libvirt-5-format",
|
|
|
a41c76 |
+ "target": "a",
|
|
|
a41c76 |
+ "bitmaps": [
|
|
|
a41c76 |
+ {
|
|
|
a41c76 |
+ "node": "libvirt-3-format",
|
|
|
a41c76 |
+ "name": "a"
|
|
|
a41c76 |
+ },
|
|
|
a41c76 |
+ {
|
|
|
a41c76 |
+ "node": "libvirt-4-format",
|
|
|
a41c76 |
+ "name": "a"
|
|
|
a41c76 |
+ }
|
|
|
a41c76 |
+ ]
|
|
|
a41c76 |
+ }
|
|
|
a41c76 |
+ },
|
|
|
a41c76 |
+ {
|
|
|
a41c76 |
+ "type": "block-dirty-bitmap-add",
|
|
|
a41c76 |
+ "data": {
|
|
|
a41c76 |
+ "node": "libvirt-5-format",
|
|
|
a41c76 |
+ "name": "b",
|
|
|
a41c76 |
+ "persistent": true,
|
|
|
a41c76 |
+ "disabled": true,
|
|
|
a41c76 |
+ "granularity": 65536
|
|
|
a41c76 |
+ }
|
|
|
a41c76 |
+ },
|
|
|
a41c76 |
+ {
|
|
|
a41c76 |
+ "type": "block-dirty-bitmap-merge",
|
|
|
a41c76 |
+ "data": {
|
|
|
a41c76 |
+ "node": "libvirt-5-format",
|
|
|
a41c76 |
+ "target": "b",
|
|
|
a41c76 |
+ "bitmaps": [
|
|
|
a41c76 |
+ {
|
|
|
a41c76 |
+ "node": "libvirt-3-format",
|
|
|
a41c76 |
+ "name": "b"
|
|
|
a41c76 |
+ }
|
|
|
a41c76 |
+ ]
|
|
|
a41c76 |
+ }
|
|
|
a41c76 |
+ },
|
|
|
a41c76 |
+ {
|
|
|
a41c76 |
+ "type": "block-dirty-bitmap-add",
|
|
|
a41c76 |
+ "data": {
|
|
|
a41c76 |
+ "node": "libvirt-5-format",
|
|
|
a41c76 |
+ "name": "c",
|
|
|
a41c76 |
+ "persistent": true,
|
|
|
a41c76 |
+ "disabled": true,
|
|
|
a41c76 |
+ "granularity": 65536
|
|
|
a41c76 |
+ }
|
|
|
a41c76 |
+ },
|
|
|
a41c76 |
+ {
|
|
|
a41c76 |
+ "type": "block-dirty-bitmap-merge",
|
|
|
a41c76 |
+ "data": {
|
|
|
a41c76 |
+ "node": "libvirt-5-format",
|
|
|
a41c76 |
+ "target": "c",
|
|
|
a41c76 |
+ "bitmaps": [
|
|
|
a41c76 |
+ {
|
|
|
a41c76 |
+ "node": "libvirt-2-format",
|
|
|
a41c76 |
+ "name": "c"
|
|
|
a41c76 |
+ },
|
|
|
a41c76 |
+ {
|
|
|
a41c76 |
+ "node": "libvirt-3-format",
|
|
|
a41c76 |
+ "name": "c"
|
|
|
a41c76 |
+ }
|
|
|
a41c76 |
+ ]
|
|
|
a41c76 |
+ }
|
|
|
a41c76 |
+ },
|
|
|
a41c76 |
+ {
|
|
|
a41c76 |
+ "type": "block-dirty-bitmap-add",
|
|
|
a41c76 |
+ "data": {
|
|
|
a41c76 |
+ "node": "libvirt-5-format",
|
|
|
a41c76 |
+ "name": "d",
|
|
|
a41c76 |
+ "persistent": true,
|
|
|
a41c76 |
+ "disabled": false,
|
|
|
a41c76 |
+ "granularity": 65536
|
|
|
a41c76 |
+ }
|
|
|
a41c76 |
+ },
|
|
|
a41c76 |
+ {
|
|
|
a41c76 |
+ "type": "block-dirty-bitmap-merge",
|
|
|
a41c76 |
+ "data": {
|
|
|
a41c76 |
+ "node": "libvirt-5-format",
|
|
|
a41c76 |
+ "target": "d",
|
|
|
a41c76 |
+ "bitmaps": [
|
|
|
a41c76 |
+ {
|
|
|
a41c76 |
+ "node": "libvirt-2-format",
|
|
|
a41c76 |
+ "name": "d"
|
|
|
a41c76 |
+ }
|
|
|
a41c76 |
+ ]
|
|
|
a41c76 |
+ }
|
|
|
a41c76 |
+ }
|
|
|
a41c76 |
+]
|
|
|
a41c76 |
diff --git a/tests/qemublocktestdata/bitmapblockcommit/snapshots-3-4 b/tests/qemublocktestdata/bitmapblockcommit/snapshots-3-4
|
|
|
a41c76 |
new file mode 100644
|
|
|
a41c76 |
index 0000000000..b96e8910d7
|
|
|
a41c76 |
--- /dev/null
|
|
|
a41c76 |
+++ b/tests/qemublocktestdata/bitmapblockcommit/snapshots-3-4
|
|
|
a41c76 |
@@ -0,0 +1,72 @@
|
|
|
a41c76 |
+pre job bitmap disable:
|
|
|
a41c76 |
+[
|
|
|
a41c76 |
+ {
|
|
|
a41c76 |
+ "type": "block-dirty-bitmap-disable",
|
|
|
a41c76 |
+ "data": {
|
|
|
a41c76 |
+ "node": "libvirt-4-format",
|
|
|
a41c76 |
+ "name": "a"
|
|
|
a41c76 |
+ }
|
|
|
a41c76 |
+ }
|
|
|
a41c76 |
+]
|
|
|
a41c76 |
+merge bitmpas:
|
|
|
a41c76 |
+[
|
|
|
a41c76 |
+ {
|
|
|
a41c76 |
+ "type": "block-dirty-bitmap-merge",
|
|
|
a41c76 |
+ "data": {
|
|
|
a41c76 |
+ "node": "libvirt-4-format",
|
|
|
a41c76 |
+ "target": "a",
|
|
|
a41c76 |
+ "bitmaps": [
|
|
|
a41c76 |
+ {
|
|
|
a41c76 |
+ "node": "libvirt-3-format",
|
|
|
a41c76 |
+ "name": "a"
|
|
|
a41c76 |
+ }
|
|
|
a41c76 |
+ ]
|
|
|
a41c76 |
+ }
|
|
|
a41c76 |
+ },
|
|
|
a41c76 |
+ {
|
|
|
a41c76 |
+ "type": "block-dirty-bitmap-add",
|
|
|
a41c76 |
+ "data": {
|
|
|
a41c76 |
+ "node": "libvirt-4-format",
|
|
|
a41c76 |
+ "name": "b",
|
|
|
a41c76 |
+ "persistent": true,
|
|
|
a41c76 |
+ "disabled": true,
|
|
|
a41c76 |
+ "granularity": 65536
|
|
|
a41c76 |
+ }
|
|
|
a41c76 |
+ },
|
|
|
a41c76 |
+ {
|
|
|
a41c76 |
+ "type": "block-dirty-bitmap-merge",
|
|
|
a41c76 |
+ "data": {
|
|
|
a41c76 |
+ "node": "libvirt-4-format",
|
|
|
a41c76 |
+ "target": "b",
|
|
|
a41c76 |
+ "bitmaps": [
|
|
|
a41c76 |
+ {
|
|
|
a41c76 |
+ "node": "libvirt-3-format",
|
|
|
a41c76 |
+ "name": "b"
|
|
|
a41c76 |
+ }
|
|
|
a41c76 |
+ ]
|
|
|
a41c76 |
+ }
|
|
|
a41c76 |
+ },
|
|
|
a41c76 |
+ {
|
|
|
a41c76 |
+ "type": "block-dirty-bitmap-add",
|
|
|
a41c76 |
+ "data": {
|
|
|
a41c76 |
+ "node": "libvirt-4-format",
|
|
|
a41c76 |
+ "name": "c",
|
|
|
a41c76 |
+ "persistent": true,
|
|
|
a41c76 |
+ "disabled": false,
|
|
|
a41c76 |
+ "granularity": 65536
|
|
|
a41c76 |
+ }
|
|
|
a41c76 |
+ },
|
|
|
a41c76 |
+ {
|
|
|
a41c76 |
+ "type": "block-dirty-bitmap-merge",
|
|
|
a41c76 |
+ "data": {
|
|
|
a41c76 |
+ "node": "libvirt-4-format",
|
|
|
a41c76 |
+ "target": "c",
|
|
|
a41c76 |
+ "bitmaps": [
|
|
|
a41c76 |
+ {
|
|
|
a41c76 |
+ "node": "libvirt-3-format",
|
|
|
a41c76 |
+ "name": "c"
|
|
|
a41c76 |
+ }
|
|
|
a41c76 |
+ ]
|
|
|
a41c76 |
+ }
|
|
|
a41c76 |
+ }
|
|
|
a41c76 |
+]
|
|
|
a41c76 |
diff --git a/tests/qemublocktestdata/bitmapblockcommit/snapshots-3-5 b/tests/qemublocktestdata/bitmapblockcommit/snapshots-3-5
|
|
|
a41c76 |
new file mode 100644
|
|
|
a41c76 |
index 0000000000..9570c34c40
|
|
|
a41c76 |
--- /dev/null
|
|
|
a41c76 |
+++ b/tests/qemublocktestdata/bitmapblockcommit/snapshots-3-5
|
|
|
a41c76 |
@@ -0,0 +1,76 @@
|
|
|
a41c76 |
+pre job bitmap disable:
|
|
|
a41c76 |
+[
|
|
|
a41c76 |
+ {
|
|
|
a41c76 |
+ "type": "block-dirty-bitmap-disable",
|
|
|
a41c76 |
+ "data": {
|
|
|
a41c76 |
+ "node": "libvirt-5-format",
|
|
|
a41c76 |
+ "name": "a"
|
|
|
a41c76 |
+ }
|
|
|
a41c76 |
+ }
|
|
|
a41c76 |
+]
|
|
|
a41c76 |
+merge bitmpas:
|
|
|
a41c76 |
+[
|
|
|
a41c76 |
+ {
|
|
|
a41c76 |
+ "type": "block-dirty-bitmap-merge",
|
|
|
a41c76 |
+ "data": {
|
|
|
a41c76 |
+ "node": "libvirt-5-format",
|
|
|
a41c76 |
+ "target": "a",
|
|
|
a41c76 |
+ "bitmaps": [
|
|
|
a41c76 |
+ {
|
|
|
a41c76 |
+ "node": "libvirt-3-format",
|
|
|
a41c76 |
+ "name": "a"
|
|
|
a41c76 |
+ },
|
|
|
a41c76 |
+ {
|
|
|
a41c76 |
+ "node": "libvirt-4-format",
|
|
|
a41c76 |
+ "name": "a"
|
|
|
a41c76 |
+ }
|
|
|
a41c76 |
+ ]
|
|
|
a41c76 |
+ }
|
|
|
a41c76 |
+ },
|
|
|
a41c76 |
+ {
|
|
|
a41c76 |
+ "type": "block-dirty-bitmap-add",
|
|
|
a41c76 |
+ "data": {
|
|
|
a41c76 |
+ "node": "libvirt-5-format",
|
|
|
a41c76 |
+ "name": "b",
|
|
|
a41c76 |
+ "persistent": true,
|
|
|
a41c76 |
+ "disabled": true,
|
|
|
a41c76 |
+ "granularity": 65536
|
|
|
a41c76 |
+ }
|
|
|
a41c76 |
+ },
|
|
|
a41c76 |
+ {
|
|
|
a41c76 |
+ "type": "block-dirty-bitmap-merge",
|
|
|
a41c76 |
+ "data": {
|
|
|
a41c76 |
+ "node": "libvirt-5-format",
|
|
|
a41c76 |
+ "target": "b",
|
|
|
a41c76 |
+ "bitmaps": [
|
|
|
a41c76 |
+ {
|
|
|
a41c76 |
+ "node": "libvirt-3-format",
|
|
|
a41c76 |
+ "name": "b"
|
|
|
a41c76 |
+ }
|
|
|
a41c76 |
+ ]
|
|
|
a41c76 |
+ }
|
|
|
a41c76 |
+ },
|
|
|
a41c76 |
+ {
|
|
|
a41c76 |
+ "type": "block-dirty-bitmap-add",
|
|
|
a41c76 |
+ "data": {
|
|
|
a41c76 |
+ "node": "libvirt-5-format",
|
|
|
a41c76 |
+ "name": "c",
|
|
|
a41c76 |
+ "persistent": true,
|
|
|
a41c76 |
+ "disabled": false,
|
|
|
a41c76 |
+ "granularity": 65536
|
|
|
a41c76 |
+ }
|
|
|
a41c76 |
+ },
|
|
|
a41c76 |
+ {
|
|
|
a41c76 |
+ "type": "block-dirty-bitmap-merge",
|
|
|
a41c76 |
+ "data": {
|
|
|
a41c76 |
+ "node": "libvirt-5-format",
|
|
|
a41c76 |
+ "target": "c",
|
|
|
a41c76 |
+ "bitmaps": [
|
|
|
a41c76 |
+ {
|
|
|
a41c76 |
+ "node": "libvirt-3-format",
|
|
|
a41c76 |
+ "name": "c"
|
|
|
a41c76 |
+ }
|
|
|
a41c76 |
+ ]
|
|
|
a41c76 |
+ }
|
|
|
a41c76 |
+ }
|
|
|
a41c76 |
+]
|
|
|
a41c76 |
diff --git a/tests/qemublocktestdata/bitmapblockcommit/snapshots-4-5 b/tests/qemublocktestdata/bitmapblockcommit/snapshots-4-5
|
|
|
a41c76 |
new file mode 100644
|
|
|
a41c76 |
index 0000000000..7e1020d96e
|
|
|
a41c76 |
--- /dev/null
|
|
|
a41c76 |
+++ b/tests/qemublocktestdata/bitmapblockcommit/snapshots-4-5
|
|
|
a41c76 |
@@ -0,0 +1,33 @@
|
|
|
a41c76 |
+pre job bitmap disable:
|
|
|
a41c76 |
+[
|
|
|
a41c76 |
+ {
|
|
|
a41c76 |
+ "type": "block-dirty-bitmap-disable",
|
|
|
a41c76 |
+ "data": {
|
|
|
a41c76 |
+ "node": "libvirt-5-format",
|
|
|
a41c76 |
+ "name": "a"
|
|
|
a41c76 |
+ }
|
|
|
a41c76 |
+ }
|
|
|
a41c76 |
+]
|
|
|
a41c76 |
+merge bitmpas:
|
|
|
a41c76 |
+[
|
|
|
a41c76 |
+ {
|
|
|
a41c76 |
+ "type": "block-dirty-bitmap-enable",
|
|
|
a41c76 |
+ "data": {
|
|
|
a41c76 |
+ "node": "libvirt-5-format",
|
|
|
a41c76 |
+ "name": "a"
|
|
|
a41c76 |
+ }
|
|
|
a41c76 |
+ },
|
|
|
a41c76 |
+ {
|
|
|
a41c76 |
+ "type": "block-dirty-bitmap-merge",
|
|
|
a41c76 |
+ "data": {
|
|
|
a41c76 |
+ "node": "libvirt-5-format",
|
|
|
a41c76 |
+ "target": "a",
|
|
|
a41c76 |
+ "bitmaps": [
|
|
|
a41c76 |
+ {
|
|
|
a41c76 |
+ "node": "libvirt-4-format",
|
|
|
a41c76 |
+ "name": "a"
|
|
|
a41c76 |
+ }
|
|
|
a41c76 |
+ ]
|
|
|
a41c76 |
+ }
|
|
|
a41c76 |
+ }
|
|
|
a41c76 |
+]
|
|
|
a41c76 |
--
|
|
|
a41c76 |
2.25.1
|
|
|
a41c76 |
|