Blame SOURCES/libvirt-qemublocktest-Add-test-cases-for-handling-bitmaps-during-block-copy.patch

a41c76
From 98ac7cbfb11dd6e5eadc88698f762cd9a48b4789 Mon Sep 17 00:00:00 2001
a41c76
Message-Id: <98ac7cbfb11dd6e5eadc88698f762cd9a48b4789@dist-git>
a41c76
From: Peter Krempa <pkrempa@redhat.com>
a41c76
Date: Tue, 23 Jun 2020 12:24:05 +0200
a41c76
Subject: [PATCH] qemublocktest: Add test cases for handling bitmaps during
a41c76
 block-copy
a41c76
MIME-Version: 1.0
a41c76
Content-Type: text/plain; charset=UTF-8
a41c76
Content-Transfer-Encoding: 8bit
a41c76
a41c76
Test both 'basic' and 'snapshots' cases on shallow and deep copy modes.
a41c76
a41c76
Signed-off-by: Peter Krempa <pkrempa@redhat.com>
a41c76
Reviewed-by: Eric Blake <eblake@redhat.com>
a41c76
(cherry picked from commit 5f2fdcc867a08baa3d931cde895761bcbb45b7f6)
a41c76
https://bugzilla.redhat.com/show_bug.cgi?id=1804593
a41c76
Message-Id: <1f77aeac4a968c1115893226589b8d97f8a90838.1592906423.git.pkrempa@redhat.com>
a41c76
Reviewed-by: Ján Tomko <jtomko@redhat.com>
a41c76
---
a41c76
 tests/qemublocktest.c                         |   5 +
a41c76
 .../bitmapblockcopy/basic-deep-out.json       | 144 ++++++++++++++
a41c76
 .../bitmapblockcopy/basic-shallow-out.json    | 144 ++++++++++++++
a41c76
 .../bitmapblockcopy/snapshots-deep-out.json   | 180 ++++++++++++++++++
a41c76
 .../snapshots-shallow-out.json                | 144 ++++++++++++++
a41c76
 5 files changed, 617 insertions(+)
a41c76
 create mode 100644 tests/qemublocktestdata/bitmapblockcopy/basic-deep-out.json
a41c76
 create mode 100644 tests/qemublocktestdata/bitmapblockcopy/basic-shallow-out.json
a41c76
 create mode 100644 tests/qemublocktestdata/bitmapblockcopy/snapshots-deep-out.json
a41c76
 create mode 100644 tests/qemublocktestdata/bitmapblockcopy/snapshots-shallow-out.json
a41c76
a41c76
diff --git a/tests/qemublocktest.c b/tests/qemublocktest.c
a41c76
index 193b4aaed0..758a7c1db0 100644
a41c76
--- a/tests/qemublocktest.c
a41c76
+++ b/tests/qemublocktest.c
a41c76
@@ -1345,6 +1345,11 @@ mymain(void)
a41c76
     TEST_BITMAP_BLOCKCOPY("empty-shallow", true, "empty");
a41c76
     TEST_BITMAP_BLOCKCOPY("empty-deep", false, "empty");
a41c76
 
a41c76
+    TEST_BITMAP_BLOCKCOPY("basic-shallow", true, "basic");
a41c76
+    TEST_BITMAP_BLOCKCOPY("basic-deep", false, "basic");
a41c76
+
a41c76
+    TEST_BITMAP_BLOCKCOPY("snapshots-shallow", true, "snapshots");
a41c76
+    TEST_BITMAP_BLOCKCOPY("snapshots-deep", false, "snapshots");
a41c76
 
a41c76
 #define TEST_BITMAP_BLOCKCOMMIT(testname, topimg, baseimg, ndf) \
a41c76
     do {\
a41c76
diff --git a/tests/qemublocktestdata/bitmapblockcopy/basic-deep-out.json b/tests/qemublocktestdata/bitmapblockcopy/basic-deep-out.json
a41c76
new file mode 100644
a41c76
index 0000000000..a8c2749879
a41c76
--- /dev/null
a41c76
+++ b/tests/qemublocktestdata/bitmapblockcopy/basic-deep-out.json
a41c76
@@ -0,0 +1,144 @@
a41c76
+[
a41c76
+  {
a41c76
+    "type": "block-dirty-bitmap-add",
a41c76
+    "data": {
a41c76
+      "node": "mirror-format-node",
a41c76
+      "name": "a",
a41c76
+      "persistent": true,
a41c76
+      "disabled": false,
a41c76
+      "granularity": 65536
a41c76
+    }
a41c76
+  },
a41c76
+  {
a41c76
+    "type": "block-dirty-bitmap-merge",
a41c76
+    "data": {
a41c76
+      "node": "mirror-format-node",
a41c76
+      "target": "a",
a41c76
+      "bitmaps": [
a41c76
+        {
a41c76
+          "node": "libvirt-1-format",
a41c76
+          "name": "a"
a41c76
+        },
a41c76
+        {
a41c76
+          "node": "mirror-format-node",
a41c76
+          "name": "libvirt-tmp-activewrite"
a41c76
+        }
a41c76
+      ]
a41c76
+    }
a41c76
+  },
a41c76
+  {
a41c76
+    "type": "block-dirty-bitmap-add",
a41c76
+    "data": {
a41c76
+      "node": "mirror-format-node",
a41c76
+      "name": "b",
a41c76
+      "persistent": true,
a41c76
+      "disabled": false,
a41c76
+      "granularity": 65536
a41c76
+    }
a41c76
+  },
a41c76
+  {
a41c76
+    "type": "block-dirty-bitmap-merge",
a41c76
+    "data": {
a41c76
+      "node": "mirror-format-node",
a41c76
+      "target": "b",
a41c76
+      "bitmaps": [
a41c76
+        {
a41c76
+          "node": "libvirt-1-format",
a41c76
+          "name": "b"
a41c76
+        },
a41c76
+        {
a41c76
+          "node": "mirror-format-node",
a41c76
+          "name": "libvirt-tmp-activewrite"
a41c76
+        }
a41c76
+      ]
a41c76
+    }
a41c76
+  },
a41c76
+  {
a41c76
+    "type": "block-dirty-bitmap-add",
a41c76
+    "data": {
a41c76
+      "node": "mirror-format-node",
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": "mirror-format-node",
a41c76
+      "target": "c",
a41c76
+      "bitmaps": [
a41c76
+        {
a41c76
+          "node": "libvirt-1-format",
a41c76
+          "name": "c"
a41c76
+        },
a41c76
+        {
a41c76
+          "node": "mirror-format-node",
a41c76
+          "name": "libvirt-tmp-activewrite"
a41c76
+        }
a41c76
+      ]
a41c76
+    }
a41c76
+  },
a41c76
+  {
a41c76
+    "type": "block-dirty-bitmap-add",
a41c76
+    "data": {
a41c76
+      "node": "mirror-format-node",
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": "mirror-format-node",
a41c76
+      "target": "d",
a41c76
+      "bitmaps": [
a41c76
+        {
a41c76
+          "node": "libvirt-1-format",
a41c76
+          "name": "d"
a41c76
+        },
a41c76
+        {
a41c76
+          "node": "mirror-format-node",
a41c76
+          "name": "libvirt-tmp-activewrite"
a41c76
+        }
a41c76
+      ]
a41c76
+    }
a41c76
+  },
a41c76
+  {
a41c76
+    "type": "block-dirty-bitmap-add",
a41c76
+    "data": {
a41c76
+      "node": "mirror-format-node",
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": "mirror-format-node",
a41c76
+      "target": "current",
a41c76
+      "bitmaps": [
a41c76
+        {
a41c76
+          "node": "libvirt-1-format",
a41c76
+          "name": "current"
a41c76
+        },
a41c76
+        {
a41c76
+          "node": "mirror-format-node",
a41c76
+          "name": "libvirt-tmp-activewrite"
a41c76
+        }
a41c76
+      ]
a41c76
+    }
a41c76
+  },
a41c76
+  {
a41c76
+    "type": "block-dirty-bitmap-remove",
a41c76
+    "data": {
a41c76
+      "node": "mirror-format-node",
a41c76
+      "name": "libvirt-tmp-activewrite"
a41c76
+    }
a41c76
+  }
a41c76
+]
a41c76
diff --git a/tests/qemublocktestdata/bitmapblockcopy/basic-shallow-out.json b/tests/qemublocktestdata/bitmapblockcopy/basic-shallow-out.json
a41c76
new file mode 100644
a41c76
index 0000000000..a8c2749879
a41c76
--- /dev/null
a41c76
+++ b/tests/qemublocktestdata/bitmapblockcopy/basic-shallow-out.json
a41c76
@@ -0,0 +1,144 @@
a41c76
+[
a41c76
+  {
a41c76
+    "type": "block-dirty-bitmap-add",
a41c76
+    "data": {
a41c76
+      "node": "mirror-format-node",
a41c76
+      "name": "a",
a41c76
+      "persistent": true,
a41c76
+      "disabled": false,
a41c76
+      "granularity": 65536
a41c76
+    }
a41c76
+  },
a41c76
+  {
a41c76
+    "type": "block-dirty-bitmap-merge",
a41c76
+    "data": {
a41c76
+      "node": "mirror-format-node",
a41c76
+      "target": "a",
a41c76
+      "bitmaps": [
a41c76
+        {
a41c76
+          "node": "libvirt-1-format",
a41c76
+          "name": "a"
a41c76
+        },
a41c76
+        {
a41c76
+          "node": "mirror-format-node",
a41c76
+          "name": "libvirt-tmp-activewrite"
a41c76
+        }
a41c76
+      ]
a41c76
+    }
a41c76
+  },
a41c76
+  {
a41c76
+    "type": "block-dirty-bitmap-add",
a41c76
+    "data": {
a41c76
+      "node": "mirror-format-node",
a41c76
+      "name": "b",
a41c76
+      "persistent": true,
a41c76
+      "disabled": false,
a41c76
+      "granularity": 65536
a41c76
+    }
a41c76
+  },
a41c76
+  {
a41c76
+    "type": "block-dirty-bitmap-merge",
a41c76
+    "data": {
a41c76
+      "node": "mirror-format-node",
a41c76
+      "target": "b",
a41c76
+      "bitmaps": [
a41c76
+        {
a41c76
+          "node": "libvirt-1-format",
a41c76
+          "name": "b"
a41c76
+        },
a41c76
+        {
a41c76
+          "node": "mirror-format-node",
a41c76
+          "name": "libvirt-tmp-activewrite"
a41c76
+        }
a41c76
+      ]
a41c76
+    }
a41c76
+  },
a41c76
+  {
a41c76
+    "type": "block-dirty-bitmap-add",
a41c76
+    "data": {
a41c76
+      "node": "mirror-format-node",
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": "mirror-format-node",
a41c76
+      "target": "c",
a41c76
+      "bitmaps": [
a41c76
+        {
a41c76
+          "node": "libvirt-1-format",
a41c76
+          "name": "c"
a41c76
+        },
a41c76
+        {
a41c76
+          "node": "mirror-format-node",
a41c76
+          "name": "libvirt-tmp-activewrite"
a41c76
+        }
a41c76
+      ]
a41c76
+    }
a41c76
+  },
a41c76
+  {
a41c76
+    "type": "block-dirty-bitmap-add",
a41c76
+    "data": {
a41c76
+      "node": "mirror-format-node",
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": "mirror-format-node",
a41c76
+      "target": "d",
a41c76
+      "bitmaps": [
a41c76
+        {
a41c76
+          "node": "libvirt-1-format",
a41c76
+          "name": "d"
a41c76
+        },
a41c76
+        {
a41c76
+          "node": "mirror-format-node",
a41c76
+          "name": "libvirt-tmp-activewrite"
a41c76
+        }
a41c76
+      ]
a41c76
+    }
a41c76
+  },
a41c76
+  {
a41c76
+    "type": "block-dirty-bitmap-add",
a41c76
+    "data": {
a41c76
+      "node": "mirror-format-node",
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": "mirror-format-node",
a41c76
+      "target": "current",
a41c76
+      "bitmaps": [
a41c76
+        {
a41c76
+          "node": "libvirt-1-format",
a41c76
+          "name": "current"
a41c76
+        },
a41c76
+        {
a41c76
+          "node": "mirror-format-node",
a41c76
+          "name": "libvirt-tmp-activewrite"
a41c76
+        }
a41c76
+      ]
a41c76
+    }
a41c76
+  },
a41c76
+  {
a41c76
+    "type": "block-dirty-bitmap-remove",
a41c76
+    "data": {
a41c76
+      "node": "mirror-format-node",
a41c76
+      "name": "libvirt-tmp-activewrite"
a41c76
+    }
a41c76
+  }
a41c76
+]
a41c76
diff --git a/tests/qemublocktestdata/bitmapblockcopy/snapshots-deep-out.json b/tests/qemublocktestdata/bitmapblockcopy/snapshots-deep-out.json
a41c76
new file mode 100644
a41c76
index 0000000000..ac2ffb4ce2
a41c76
--- /dev/null
a41c76
+++ b/tests/qemublocktestdata/bitmapblockcopy/snapshots-deep-out.json
a41c76
@@ -0,0 +1,180 @@
a41c76
+[
a41c76
+  {
a41c76
+    "type": "block-dirty-bitmap-add",
a41c76
+    "data": {
a41c76
+      "node": "mirror-format-node",
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": "mirror-format-node",
a41c76
+      "target": "current",
a41c76
+      "bitmaps": [
a41c76
+        {
a41c76
+          "node": "libvirt-1-format",
a41c76
+          "name": "current"
a41c76
+        },
a41c76
+        {
a41c76
+          "node": "mirror-format-node",
a41c76
+          "name": "libvirt-tmp-activewrite"
a41c76
+        }
a41c76
+      ]
a41c76
+    }
a41c76
+  },
a41c76
+  {
a41c76
+    "type": "block-dirty-bitmap-add",
a41c76
+    "data": {
a41c76
+      "node": "mirror-format-node",
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": "mirror-format-node",
a41c76
+      "target": "c",
a41c76
+      "bitmaps": [
a41c76
+        {
a41c76
+          "node": "libvirt-1-format",
a41c76
+          "name": "c"
a41c76
+        },
a41c76
+        {
a41c76
+          "node": "libvirt-2-format",
a41c76
+          "name": "c"
a41c76
+        },
a41c76
+        {
a41c76
+          "node": "libvirt-3-format",
a41c76
+          "name": "c"
a41c76
+        },
a41c76
+        {
a41c76
+          "node": "mirror-format-node",
a41c76
+          "name": "libvirt-tmp-activewrite"
a41c76
+        }
a41c76
+      ]
a41c76
+    }
a41c76
+  },
a41c76
+  {
a41c76
+    "type": "block-dirty-bitmap-add",
a41c76
+    "data": {
a41c76
+      "node": "mirror-format-node",
a41c76
+      "name": "b",
a41c76
+      "persistent": true,
a41c76
+      "disabled": false,
a41c76
+      "granularity": 65536
a41c76
+    }
a41c76
+  },
a41c76
+  {
a41c76
+    "type": "block-dirty-bitmap-merge",
a41c76
+    "data": {
a41c76
+      "node": "mirror-format-node",
a41c76
+      "target": "b",
a41c76
+      "bitmaps": [
a41c76
+        {
a41c76
+          "node": "libvirt-1-format",
a41c76
+          "name": "b"
a41c76
+        },
a41c76
+        {
a41c76
+          "node": "libvirt-2-format",
a41c76
+          "name": "b"
a41c76
+        },
a41c76
+        {
a41c76
+          "node": "libvirt-3-format",
a41c76
+          "name": "b"
a41c76
+        },
a41c76
+        {
a41c76
+          "node": "mirror-format-node",
a41c76
+          "name": "libvirt-tmp-activewrite"
a41c76
+        }
a41c76
+      ]
a41c76
+    }
a41c76
+  },
a41c76
+  {
a41c76
+    "type": "block-dirty-bitmap-add",
a41c76
+    "data": {
a41c76
+      "node": "mirror-format-node",
a41c76
+      "name": "a",
a41c76
+      "persistent": true,
a41c76
+      "disabled": false,
a41c76
+      "granularity": 65536
a41c76
+    }
a41c76
+  },
a41c76
+  {
a41c76
+    "type": "block-dirty-bitmap-merge",
a41c76
+    "data": {
a41c76
+      "node": "mirror-format-node",
a41c76
+      "target": "a",
a41c76
+      "bitmaps": [
a41c76
+        {
a41c76
+          "node": "libvirt-1-format",
a41c76
+          "name": "a"
a41c76
+        },
a41c76
+        {
a41c76
+          "node": "libvirt-2-format",
a41c76
+          "name": "a"
a41c76
+        },
a41c76
+        {
a41c76
+          "node": "libvirt-3-format",
a41c76
+          "name": "a"
a41c76
+        },
a41c76
+        {
a41c76
+          "node": "libvirt-4-format",
a41c76
+          "name": "a"
a41c76
+        },
a41c76
+        {
a41c76
+          "node": "libvirt-5-format",
a41c76
+          "name": "a"
a41c76
+        },
a41c76
+        {
a41c76
+          "node": "mirror-format-node",
a41c76
+          "name": "libvirt-tmp-activewrite"
a41c76
+        }
a41c76
+      ]
a41c76
+    }
a41c76
+  },
a41c76
+  {
a41c76
+    "type": "block-dirty-bitmap-add",
a41c76
+    "data": {
a41c76
+      "node": "mirror-format-node",
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": "mirror-format-node",
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
+          "node": "mirror-format-node",
a41c76
+          "name": "libvirt-tmp-activewrite"
a41c76
+        }
a41c76
+      ]
a41c76
+    }
a41c76
+  },
a41c76
+  {
a41c76
+    "type": "block-dirty-bitmap-remove",
a41c76
+    "data": {
a41c76
+      "node": "mirror-format-node",
a41c76
+      "name": "libvirt-tmp-activewrite"
a41c76
+    }
a41c76
+  }
a41c76
+]
a41c76
diff --git a/tests/qemublocktestdata/bitmapblockcopy/snapshots-shallow-out.json b/tests/qemublocktestdata/bitmapblockcopy/snapshots-shallow-out.json
a41c76
new file mode 100644
a41c76
index 0000000000..3a9942569a
a41c76
--- /dev/null
a41c76
+++ b/tests/qemublocktestdata/bitmapblockcopy/snapshots-shallow-out.json
a41c76
@@ -0,0 +1,144 @@
a41c76
+[
a41c76
+  {
a41c76
+    "type": "block-dirty-bitmap-add",
a41c76
+    "data": {
a41c76
+      "node": "mirror-format-node",
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": "mirror-format-node",
a41c76
+      "target": "current",
a41c76
+      "bitmaps": [
a41c76
+        {
a41c76
+          "node": "libvirt-1-format",
a41c76
+          "name": "current"
a41c76
+        },
a41c76
+        {
a41c76
+          "node": "mirror-format-node",
a41c76
+          "name": "libvirt-tmp-activewrite"
a41c76
+        }
a41c76
+      ]
a41c76
+    }
a41c76
+  },
a41c76
+  {
a41c76
+    "type": "block-dirty-bitmap-add",
a41c76
+    "data": {
a41c76
+      "node": "mirror-format-node",
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": "mirror-format-node",
a41c76
+      "target": "c",
a41c76
+      "bitmaps": [
a41c76
+        {
a41c76
+          "node": "libvirt-1-format",
a41c76
+          "name": "c"
a41c76
+        },
a41c76
+        {
a41c76
+          "node": "mirror-format-node",
a41c76
+          "name": "libvirt-tmp-activewrite"
a41c76
+        }
a41c76
+      ]
a41c76
+    }
a41c76
+  },
a41c76
+  {
a41c76
+    "type": "block-dirty-bitmap-add",
a41c76
+    "data": {
a41c76
+      "node": "mirror-format-node",
a41c76
+      "name": "b",
a41c76
+      "persistent": true,
a41c76
+      "disabled": false,
a41c76
+      "granularity": 65536
a41c76
+    }
a41c76
+  },
a41c76
+  {
a41c76
+    "type": "block-dirty-bitmap-merge",
a41c76
+    "data": {
a41c76
+      "node": "mirror-format-node",
a41c76
+      "target": "b",
a41c76
+      "bitmaps": [
a41c76
+        {
a41c76
+          "node": "libvirt-1-format",
a41c76
+          "name": "b"
a41c76
+        },
a41c76
+        {
a41c76
+          "node": "mirror-format-node",
a41c76
+          "name": "libvirt-tmp-activewrite"
a41c76
+        }
a41c76
+      ]
a41c76
+    }
a41c76
+  },
a41c76
+  {
a41c76
+    "type": "block-dirty-bitmap-add",
a41c76
+    "data": {
a41c76
+      "node": "mirror-format-node",
a41c76
+      "name": "a",
a41c76
+      "persistent": true,
a41c76
+      "disabled": false,
a41c76
+      "granularity": 65536
a41c76
+    }
a41c76
+  },
a41c76
+  {
a41c76
+    "type": "block-dirty-bitmap-merge",
a41c76
+    "data": {
a41c76
+      "node": "mirror-format-node",
a41c76
+      "target": "a",
a41c76
+      "bitmaps": [
a41c76
+        {
a41c76
+          "node": "libvirt-1-format",
a41c76
+          "name": "a"
a41c76
+        },
a41c76
+        {
a41c76
+          "node": "mirror-format-node",
a41c76
+          "name": "libvirt-tmp-activewrite"
a41c76
+        }
a41c76
+      ]
a41c76
+    }
a41c76
+  },
a41c76
+  {
a41c76
+    "type": "block-dirty-bitmap-add",
a41c76
+    "data": {
a41c76
+      "node": "mirror-format-node",
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": "mirror-format-node",
a41c76
+      "target": "d",
a41c76
+      "bitmaps": [
a41c76
+        {
a41c76
+          "node": "libvirt-1-format",
a41c76
+          "name": "d"
a41c76
+        },
a41c76
+        {
a41c76
+          "node": "mirror-format-node",
a41c76
+          "name": "libvirt-tmp-activewrite"
a41c76
+        }
a41c76
+      ]
a41c76
+    }
a41c76
+  },
a41c76
+  {
a41c76
+    "type": "block-dirty-bitmap-remove",
a41c76
+    "data": {
a41c76
+      "node": "mirror-format-node",
a41c76
+      "name": "libvirt-tmp-activewrite"
a41c76
+    }
a41c76
+  }
a41c76
+]
a41c76
-- 
a41c76
2.27.0
a41c76