render / rpms / libvirt

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