render / rpms / libvirt

Forked from rpms/libvirt 4 months ago
Clone
a41c76
From 31106cd65ee58f168769bb91eab8a0e5116b7a97 Mon Sep 17 00:00:00 2001
a41c76
Message-Id: <31106cd65ee58f168769bb91eab8a0e5116b7a97@dist-git>
a41c76
From: Peter Krempa <pkrempa@redhat.com>
a41c76
Date: Tue, 23 Jun 2020 12:23:49 +0200
a41c76
Subject: [PATCH] qemublocktest: Replace 'snapshots' bitmap detection test case
a41c76
 data
a41c76
MIME-Version: 1.0
a41c76
Content-Type: text/plain; charset=UTF-8
a41c76
Content-Transfer-Encoding: 8bit
a41c76
a41c76
Use test data which conforms to the new semantics which changed in the
a41c76
previous patch.
a41c76
a41c76
The test data was created by the same set of commands as originally in
a41c76
commit 0b27b655b1bac480186ce80457113cd5dc34e6a1
a41c76
a41c76
Signed-off-by: Peter Krempa <pkrempa@redhat.com>
a41c76
Reviewed-by: Eric Blake <eblake@redhat.com>
a41c76
(cherry picked from commit ff00fa228d66b47e1b24c4a8cccf845af1d9385c)
a41c76
https://bugzilla.redhat.com/show_bug.cgi?id=1804593
a41c76
Message-Id: <f38005bfc322242472a18e1c05a4a44ddc4780a6.1592906423.git.pkrempa@redhat.com>
a41c76
Reviewed-by: Ján Tomko <jtomko@redhat.com>
a41c76
---
a41c76
 tests/qemublocktestdata/bitmap/snapshots.json | 1382 +++++++----------
a41c76
 tests/qemublocktestdata/bitmap/snapshots.out  |   13 +-
a41c76
 2 files changed, 588 insertions(+), 807 deletions(-)
a41c76
a41c76
diff --git a/tests/qemublocktestdata/bitmap/snapshots.json b/tests/qemublocktestdata/bitmap/snapshots.json
a41c76
index 87e77ad408..2a20aea812 100644
a41c76
--- a/tests/qemublocktestdata/bitmap/snapshots.json
a41c76
+++ b/tests/qemublocktestdata/bitmap/snapshots.json
a41c76
@@ -1,836 +1,612 @@
a41c76
 [
a41c76
-    {
a41c76
-        "iops_rd": 0,
a41c76
-        "detect_zeroes": "off",
a41c76
-        "image": {
a41c76
-            "backing-image": {
a41c76
-                "backing-image": {
a41c76
-                    "backing-image": {
a41c76
-                        "backing-image": {
a41c76
-                            "virtual-size": 10485760,
a41c76
-                            "filename": "/tmp/pull4.qcow2",
a41c76
-                            "cluster-size": 65536,
a41c76
-                            "format": "qcow2",
a41c76
-                            "actual-size": 208896,
a41c76
-                            "format-specific": {
a41c76
-                                "type": "qcow2",
a41c76
-                                "data": {
a41c76
-                                    "compat": "1.1",
a41c76
-                                    "lazy-refcounts": false,
a41c76
-                                    "bitmaps": [
a41c76
-                                        {
a41c76
-                                            "flags": [
a41c76
-                                                "auto"
a41c76
-                                            ],
a41c76
-                                            "name": "a",
a41c76
-                                            "granularity": 65536
a41c76
-                                        }
a41c76
-                                    ],
a41c76
-                                    "refcount-bits": 16,
a41c76
-                                    "corrupt": false
a41c76
-                                }
a41c76
-                            },
a41c76
-                            "dirty-flag": false
a41c76
-                        },
a41c76
-                        "backing-filename-format": "qcow2",
a41c76
-                        "virtual-size": 10485760,
a41c76
-                        "filename": "/tmp/pull4.1575911522",
a41c76
-                        "cluster-size": 65536,
a41c76
-                        "format": "qcow2",
a41c76
-                        "actual-size": 208896,
a41c76
-                        "format-specific": {
a41c76
-                            "type": "qcow2",
a41c76
-                            "data": {
a41c76
-                                "compat": "1.1",
a41c76
-                                "lazy-refcounts": false,
a41c76
-                                "bitmaps": [
a41c76
-                                    {
a41c76
-                                        "flags": [
a41c76
-                                            "auto"
a41c76
-                                        ],
a41c76
-                                        "name": "a",
a41c76
-                                        "granularity": 65536
a41c76
-                                    }
a41c76
-                                ],
a41c76
-                                "refcount-bits": 16,
a41c76
-                                "corrupt": false
a41c76
-                            }
a41c76
-                        },
a41c76
-                        "full-backing-filename": "/tmp/pull4.qcow2",
a41c76
-                        "backing-filename": "/tmp/pull4.qcow2",
a41c76
-                        "dirty-flag": false
a41c76
-                    },
a41c76
-                    "backing-filename-format": "qcow2",
a41c76
-                    "virtual-size": 10485760,
a41c76
-                    "filename": "/tmp/pull4.1575911527",
a41c76
-                    "cluster-size": 65536,
a41c76
-                    "format": "qcow2",
a41c76
-                    "actual-size": 217088,
a41c76
-                    "format-specific": {
a41c76
-                        "type": "qcow2",
a41c76
-                        "data": {
a41c76
-                            "compat": "1.1",
a41c76
-                            "lazy-refcounts": false,
a41c76
-                            "bitmaps": [
a41c76
-                                {
a41c76
-                                    "flags": [
a41c76
-                                        "auto"
a41c76
-                                    ],
a41c76
-                                    "name": "c",
a41c76
-                                    "granularity": 65536
a41c76
-                                },
a41c76
-                                {
a41c76
-                                    "flags": [
a41c76
-
a41c76
-                                    ],
a41c76
-                                    "name": "b",
a41c76
-                                    "granularity": 65536
a41c76
-                                },
a41c76
-                                {
a41c76
-                                    "flags": [
a41c76
-
a41c76
-                                    ],
a41c76
-                                    "name": "a",
a41c76
-                                    "granularity": 65536
a41c76
-                                }
a41c76
-                            ],
a41c76
-                            "refcount-bits": 16,
a41c76
-                            "corrupt": false
a41c76
-                        }
a41c76
-                    },
a41c76
-                    "full-backing-filename": "/tmp/pull4.1575911522",
a41c76
-                    "backing-filename": "/tmp/pull4.1575911522",
a41c76
-                    "dirty-flag": false
a41c76
-                },
a41c76
-                "backing-filename-format": "qcow2",
a41c76
-                "virtual-size": 10485760,
a41c76
-                "filename": "/tmp/pull4.1575911540",
a41c76
-                "cluster-size": 65536,
a41c76
-                "format": "qcow2",
a41c76
-                "actual-size": 212992,
a41c76
-                "format-specific": {
a41c76
-                    "type": "qcow2",
a41c76
-                    "data": {
a41c76
-                        "compat": "1.1",
a41c76
-                        "lazy-refcounts": false,
a41c76
-                        "bitmaps": [
a41c76
-                            {
a41c76
-                                "flags": [
a41c76
-                                    "auto"
a41c76
-                                ],
a41c76
-                                "name": "d",
a41c76
-                                "granularity": 65536
a41c76
-                            },
a41c76
-                            {
a41c76
-                                "flags": [
a41c76
-
a41c76
-                                ],
a41c76
-                                "name": "c",
a41c76
-                                "granularity": 65536
a41c76
-                            }
a41c76
-                        ],
a41c76
-                        "refcount-bits": 16,
a41c76
-                        "corrupt": false
a41c76
-                    }
a41c76
-                },
a41c76
-                "full-backing-filename": "/tmp/pull4.1575911527",
a41c76
-                "backing-filename": "/tmp/pull4.1575911527",
a41c76
-                "dirty-flag": false
a41c76
+  {
a41c76
+    "iops_rd": 0,
a41c76
+    "detect_zeroes": "off",
a41c76
+    "image": {
a41c76
+      "backing-filename-format": "qcow2",
a41c76
+      "virtual-size": 104857600,
a41c76
+      "filename": "/tmp/bitmaps.1591792950",
a41c76
+      "cluster-size": 65536,
a41c76
+      "format": "qcow2",
a41c76
+      "actual-size": 225280,
a41c76
+      "format-specific": {
a41c76
+        "type": "qcow2",
a41c76
+        "data": {
a41c76
+          "compat": "1.1",
a41c76
+          "compression-type": "zlib",
a41c76
+          "lazy-refcounts": false,
a41c76
+          "bitmaps": [
a41c76
+            {
a41c76
+              "flags": [
a41c76
+                "in-use",
a41c76
+                "auto"
a41c76
+              ],
a41c76
+              "name": "current",
a41c76
+              "granularity": 65536
a41c76
+            },
a41c76
+            {
a41c76
+              "flags": [
a41c76
+                "in-use",
a41c76
+                "auto"
a41c76
+              ],
a41c76
+              "name": "c",
a41c76
+              "granularity": 65536
a41c76
             },
a41c76
-            "backing-filename-format": "qcow2",
a41c76
-            "virtual-size": 10485760,
a41c76
-            "filename": "/tmp/pull4.1575911550",
a41c76
-            "cluster-size": 65536,
a41c76
-            "format": "qcow2",
a41c76
-            "actual-size": 212992,
a41c76
-            "format-specific": {
a41c76
-                "type": "qcow2",
a41c76
-                "data": {
a41c76
-                    "compat": "1.1",
a41c76
-                    "lazy-refcounts": false,
a41c76
-                    "bitmaps": [
a41c76
-                        {
a41c76
-                            "flags": [
a41c76
-                                "in-use",
a41c76
-                                "auto"
a41c76
-                            ],
a41c76
-                            "name": "current",
a41c76
-                            "granularity": 65536
a41c76
-                        },
a41c76
-                        {
a41c76
-                            "flags": [
a41c76
-                                "in-use"
a41c76
-                            ],
a41c76
-                            "name": "d",
a41c76
-                            "granularity": 65536
a41c76
-                        }
a41c76
-                    ],
a41c76
-                    "refcount-bits": 16,
a41c76
-                    "corrupt": false
a41c76
-                }
a41c76
+            {
a41c76
+              "flags": [
a41c76
+                "in-use",
a41c76
+                "auto"
a41c76
+              ],
a41c76
+              "name": "b",
a41c76
+              "granularity": 65536
a41c76
             },
a41c76
-            "full-backing-filename": "/tmp/pull4.1575911540",
a41c76
-            "backing-filename": "/tmp/pull4.1575911540",
a41c76
-            "dirty-flag": false
a41c76
-        },
a41c76
-        "iops_wr": 0,
a41c76
-        "ro": false,
a41c76
-        "node-name": "libvirt-1-format",
a41c76
-        "backing_file_depth": 4,
a41c76
-        "drv": "qcow2",
a41c76
-        "iops": 0,
a41c76
-        "bps_wr": 0,
a41c76
-        "write_threshold": 0,
a41c76
-        "backing_file": "/tmp/pull4.1575911540",
a41c76
-        "dirty-bitmaps": [
a41c76
             {
a41c76
-                "name": "d",
a41c76
-                "recording": false,
a41c76
-                "persistent": true,
a41c76
-                "busy": false,
a41c76
-                "status": "disabled",
a41c76
-                "granularity": 65536,
a41c76
-                "count": 0
a41c76
+              "flags": [
a41c76
+                "in-use",
a41c76
+                "auto"
a41c76
+              ],
a41c76
+              "name": "a",
a41c76
+              "granularity": 65536
a41c76
             },
a41c76
             {
a41c76
-                "name": "current",
a41c76
-                "recording": true,
a41c76
-                "persistent": true,
a41c76
-                "busy": false,
a41c76
-                "status": "active",
a41c76
-                "granularity": 65536,
a41c76
-                "count": 0
a41c76
+              "flags": [
a41c76
+                "in-use",
a41c76
+                "auto"
a41c76
+              ],
a41c76
+              "name": "d",
a41c76
+              "granularity": 65536
a41c76
             }
a41c76
-        ],
a41c76
-        "encrypted": false,
a41c76
-        "bps": 0,
a41c76
-        "bps_rd": 0,
a41c76
-        "cache": {
a41c76
-            "no-flush": false,
a41c76
-            "direct": false,
a41c76
-            "writeback": true
a41c76
-        },
a41c76
-        "file": "/tmp/pull4.1575911550",
a41c76
-        "encryption_key_missing": false
a41c76
+          ],
a41c76
+          "refcount-bits": 16,
a41c76
+          "corrupt": false
a41c76
+        }
a41c76
+      },
a41c76
+      "full-backing-filename": "/tmp/bitmaps.1591792938",
a41c76
+      "backing-filename": "/tmp/bitmaps.1591792938",
a41c76
+      "dirty-flag": false
a41c76
+    },
a41c76
+    "iops_wr": 0,
a41c76
+    "ro": false,
a41c76
+    "node-name": "libvirt-1-format",
a41c76
+    "backing_file_depth": 0,
a41c76
+    "drv": "qcow2",
a41c76
+    "iops": 0,
a41c76
+    "bps_wr": 0,
a41c76
+    "write_threshold": 0,
a41c76
+    "backing_file": "/tmp/bitmaps.1591792938",
a41c76
+    "dirty-bitmaps": [
a41c76
+      {
a41c76
+        "name": "d",
a41c76
+        "recording": true,
a41c76
+        "persistent": true,
a41c76
+        "busy": false,
a41c76
+        "status": "active",
a41c76
+        "granularity": 65536,
a41c76
+        "count": 0
a41c76
+      },
a41c76
+      {
a41c76
+        "name": "a",
a41c76
+        "recording": true,
a41c76
+        "persistent": true,
a41c76
+        "busy": false,
a41c76
+        "status": "active",
a41c76
+        "granularity": 65536,
a41c76
+        "count": 0
a41c76
+      },
a41c76
+      {
a41c76
+        "name": "b",
a41c76
+        "recording": true,
a41c76
+        "persistent": true,
a41c76
+        "busy": false,
a41c76
+        "status": "active",
a41c76
+        "granularity": 65536,
a41c76
+        "count": 0
a41c76
+      },
a41c76
+      {
a41c76
+        "name": "c",
a41c76
+        "recording": true,
a41c76
+        "persistent": true,
a41c76
+        "busy": false,
a41c76
+        "status": "active",
a41c76
+        "granularity": 65536,
a41c76
+        "count": 0
a41c76
+      },
a41c76
+      {
a41c76
+        "name": "current",
a41c76
+        "recording": true,
a41c76
+        "persistent": true,
a41c76
+        "busy": false,
a41c76
+        "status": "active",
a41c76
+        "granularity": 65536,
a41c76
+        "count": 0
a41c76
+      }
a41c76
+    ],
a41c76
+    "encrypted": false,
a41c76
+    "bps": 0,
a41c76
+    "bps_rd": 0,
a41c76
+    "cache": {
a41c76
+      "no-flush": false,
a41c76
+      "direct": false,
a41c76
+      "writeback": true
a41c76
+    },
a41c76
+    "file": "/tmp/bitmaps.1591792950",
a41c76
+    "encryption_key_missing": false
a41c76
+  },
a41c76
+  {
a41c76
+    "iops_rd": 0,
a41c76
+    "detect_zeroes": "off",
a41c76
+    "image": {
a41c76
+      "virtual-size": 590336,
a41c76
+      "filename": "/tmp/bitmaps.1591792950",
a41c76
+      "format": "file",
a41c76
+      "actual-size": 225280,
a41c76
+      "dirty-flag": false
a41c76
     },
a41c76
-    {
a41c76
-        "iops_rd": 0,
a41c76
-        "detect_zeroes": "off",
a41c76
-        "image": {
a41c76
-            "virtual-size": 393728,
a41c76
-            "filename": "/tmp/pull4.1575911550",
a41c76
-            "format": "file",
a41c76
-            "actual-size": 212992,
a41c76
-            "dirty-flag": false
a41c76
-        },
a41c76
-        "iops_wr": 0,
a41c76
-        "ro": false,
a41c76
-        "node-name": "libvirt-1-storage",
a41c76
-        "backing_file_depth": 0,
a41c76
-        "drv": "file",
a41c76
-        "iops": 0,
a41c76
-        "bps_wr": 0,
a41c76
-        "write_threshold": 0,
a41c76
-        "encrypted": false,
a41c76
-        "bps": 0,
a41c76
-        "bps_rd": 0,
a41c76
-        "cache": {
a41c76
-            "no-flush": false,
a41c76
-            "direct": false,
a41c76
-            "writeback": true
a41c76
-        },
a41c76
-        "file": "/tmp/pull4.1575911550",
a41c76
-        "encryption_key_missing": false
a41c76
+    "iops_wr": 0,
a41c76
+    "ro": false,
a41c76
+    "node-name": "libvirt-1-storage",
a41c76
+    "backing_file_depth": 0,
a41c76
+    "drv": "file",
a41c76
+    "iops": 0,
a41c76
+    "bps_wr": 0,
a41c76
+    "write_threshold": 0,
a41c76
+    "encrypted": false,
a41c76
+    "bps": 0,
a41c76
+    "bps_rd": 0,
a41c76
+    "cache": {
a41c76
+      "no-flush": false,
a41c76
+      "direct": false,
a41c76
+      "writeback": true
a41c76
     },
a41c76
-    {
a41c76
-        "iops_rd": 0,
a41c76
-        "detect_zeroes": "off",
a41c76
-        "image": {
a41c76
-            "backing-image": {
a41c76
-                "backing-image": {
a41c76
-                    "backing-image": {
a41c76
-                        "virtual-size": 10485760,
a41c76
-                        "filename": "/tmp/pull4.qcow2",
a41c76
-                        "cluster-size": 65536,
a41c76
-                        "format": "qcow2",
a41c76
-                        "actual-size": 208896,
a41c76
-                        "format-specific": {
a41c76
-                            "type": "qcow2",
a41c76
-                            "data": {
a41c76
-                                "compat": "1.1",
a41c76
-                                "lazy-refcounts": false,
a41c76
-                                "bitmaps": [
a41c76
-                                    {
a41c76
-                                        "flags": [
a41c76
-                                            "auto"
a41c76
-                                        ],
a41c76
-                                        "name": "a",
a41c76
-                                        "granularity": 65536
a41c76
-                                    }
a41c76
-                                ],
a41c76
-                                "refcount-bits": 16,
a41c76
-                                "corrupt": false
a41c76
-                            }
a41c76
-                        },
a41c76
-                        "dirty-flag": false
a41c76
-                    },
a41c76
-                    "backing-filename-format": "qcow2",
a41c76
-                    "virtual-size": 10485760,
a41c76
-                    "filename": "/tmp/pull4.1575911522",
a41c76
-                    "cluster-size": 65536,
a41c76
-                    "format": "qcow2",
a41c76
-                    "actual-size": 208896,
a41c76
-                    "format-specific": {
a41c76
-                        "type": "qcow2",
a41c76
-                        "data": {
a41c76
-                            "compat": "1.1",
a41c76
-                            "lazy-refcounts": false,
a41c76
-                            "bitmaps": [
a41c76
-                                {
a41c76
-                                    "flags": [
a41c76
-                                        "auto"
a41c76
-                                    ],
a41c76
-                                    "name": "a",
a41c76
-                                    "granularity": 65536
a41c76
-                                }
a41c76
-                            ],
a41c76
-                            "refcount-bits": 16,
a41c76
-                            "corrupt": false
a41c76
-                        }
a41c76
-                    },
a41c76
-                    "full-backing-filename": "/tmp/pull4.qcow2",
a41c76
-                    "backing-filename": "/tmp/pull4.qcow2",
a41c76
-                    "dirty-flag": false
a41c76
-                },
a41c76
-                "backing-filename-format": "qcow2",
a41c76
-                "virtual-size": 10485760,
a41c76
-                "filename": "/tmp/pull4.1575911527",
a41c76
-                "cluster-size": 65536,
a41c76
-                "format": "qcow2",
a41c76
-                "actual-size": 217088,
a41c76
-                "format-specific": {
a41c76
-                    "type": "qcow2",
a41c76
-                    "data": {
a41c76
-                        "compat": "1.1",
a41c76
-                        "lazy-refcounts": false,
a41c76
-                        "bitmaps": [
a41c76
-                            {
a41c76
-                                "flags": [
a41c76
-                                    "auto"
a41c76
-                                ],
a41c76
-                                "name": "c",
a41c76
-                                "granularity": 65536
a41c76
-                            },
a41c76
-                            {
a41c76
-                                "flags": [
a41c76
-
a41c76
-                                ],
a41c76
-                                "name": "b",
a41c76
-                                "granularity": 65536
a41c76
-                            },
a41c76
-                            {
a41c76
-                                "flags": [
a41c76
-
a41c76
-                                ],
a41c76
-                                "name": "a",
a41c76
-                                "granularity": 65536
a41c76
-                            }
a41c76
-                        ],
a41c76
-                        "refcount-bits": 16,
a41c76
-                        "corrupt": false
a41c76
-                    }
a41c76
-                },
a41c76
-                "full-backing-filename": "/tmp/pull4.1575911522",
a41c76
-                "backing-filename": "/tmp/pull4.1575911522",
a41c76
-                "dirty-flag": false
a41c76
+    "file": "/tmp/bitmaps.1591792950",
a41c76
+    "encryption_key_missing": false
a41c76
+  },
a41c76
+  {
a41c76
+    "iops_rd": 0,
a41c76
+    "detect_zeroes": "off",
a41c76
+    "image": {
a41c76
+      "backing-filename-format": "qcow2",
a41c76
+      "virtual-size": 104857600,
a41c76
+      "filename": "/tmp/bitmaps.1591792938",
a41c76
+      "cluster-size": 65536,
a41c76
+      "format": "qcow2",
a41c76
+      "actual-size": 221184,
a41c76
+      "format-specific": {
a41c76
+        "type": "qcow2",
a41c76
+        "data": {
a41c76
+          "compat": "1.1",
a41c76
+          "compression-type": "zlib",
a41c76
+          "lazy-refcounts": false,
a41c76
+          "bitmaps": [
a41c76
+            {
a41c76
+              "flags": [
a41c76
+                "auto"
a41c76
+              ],
a41c76
+              "name": "d",
a41c76
+              "granularity": 65536
a41c76
             },
a41c76
-            "backing-filename-format": "qcow2",
a41c76
-            "virtual-size": 10485760,
a41c76
-            "filename": "/tmp/pull4.1575911540",
a41c76
-            "cluster-size": 65536,
a41c76
-            "format": "qcow2",
a41c76
-            "actual-size": 212992,
a41c76
-            "format-specific": {
a41c76
-                "type": "qcow2",
a41c76
-                "data": {
a41c76
-                    "compat": "1.1",
a41c76
-                    "lazy-refcounts": false,
a41c76
-                    "bitmaps": [
a41c76
-                        {
a41c76
-                            "flags": [
a41c76
-                                "auto"
a41c76
-                            ],
a41c76
-                            "name": "d",
a41c76
-                            "granularity": 65536
a41c76
-                        },
a41c76
-                        {
a41c76
-                            "flags": [
a41c76
-
a41c76
-                            ],
a41c76
-                            "name": "c",
a41c76
-                            "granularity": 65536
a41c76
-                        }
a41c76
-                    ],
a41c76
-                    "refcount-bits": 16,
a41c76
-                    "corrupt": false
a41c76
-                }
a41c76
+            {
a41c76
+              "flags": [
a41c76
+                "auto"
a41c76
+              ],
a41c76
+              "name": "a",
a41c76
+              "granularity": 65536
a41c76
             },
a41c76
-            "full-backing-filename": "/tmp/pull4.1575911527",
a41c76
-            "backing-filename": "/tmp/pull4.1575911527",
a41c76
-            "dirty-flag": false
a41c76
-        },
a41c76
-        "iops_wr": 0,
a41c76
-        "ro": true,
a41c76
-        "node-name": "libvirt-2-format",
a41c76
-        "backing_file_depth": 3,
a41c76
-        "drv": "qcow2",
a41c76
-        "iops": 0,
a41c76
-        "bps_wr": 0,
a41c76
-        "write_threshold": 0,
a41c76
-        "backing_file": "/tmp/pull4.1575911527",
a41c76
-        "dirty-bitmaps": [
a41c76
             {
a41c76
-                "name": "c",
a41c76
-                "recording": false,
a41c76
-                "persistent": true,
a41c76
-                "busy": false,
a41c76
-                "status": "disabled",
a41c76
-                "granularity": 65536,
a41c76
-                "count": 0
a41c76
+              "flags": [
a41c76
+                "auto"
a41c76
+              ],
a41c76
+              "name": "b",
a41c76
+              "granularity": 65536
a41c76
             },
a41c76
             {
a41c76
-                "name": "d",
a41c76
-                "recording": true,
a41c76
-                "persistent": true,
a41c76
-                "busy": false,
a41c76
-                "status": "active",
a41c76
-                "granularity": 65536,
a41c76
-                "count": 0
a41c76
+              "flags": [
a41c76
+                "auto"
a41c76
+              ],
a41c76
+              "name": "c",
a41c76
+              "granularity": 65536
a41c76
             }
a41c76
-        ],
a41c76
-        "encrypted": false,
a41c76
-        "bps": 0,
a41c76
-        "bps_rd": 0,
a41c76
-        "cache": {
a41c76
-            "no-flush": false,
a41c76
-            "direct": false,
a41c76
-            "writeback": true
a41c76
-        },
a41c76
-        "file": "/tmp/pull4.1575911540",
a41c76
-        "encryption_key_missing": false
a41c76
+          ],
a41c76
+          "refcount-bits": 16,
a41c76
+          "corrupt": false
a41c76
+        }
a41c76
+      },
a41c76
+      "full-backing-filename": "/tmp/bitmaps.1591792930",
a41c76
+      "backing-filename": "/tmp/bitmaps.1591792930",
a41c76
+      "dirty-flag": false
a41c76
     },
a41c76
-    {
a41c76
-        "iops_rd": 0,
a41c76
-        "detect_zeroes": "off",
a41c76
-        "image": {
a41c76
-            "virtual-size": 393728,
a41c76
-            "filename": "/tmp/pull4.1575911540",
a41c76
-            "format": "file",
a41c76
-            "actual-size": 212992,
a41c76
-            "dirty-flag": false
a41c76
-        },
a41c76
-        "iops_wr": 0,
a41c76
-        "ro": false,
a41c76
-        "node-name": "libvirt-2-storage",
a41c76
-        "backing_file_depth": 0,
a41c76
-        "drv": "file",
a41c76
-        "iops": 0,
a41c76
-        "bps_wr": 0,
a41c76
-        "write_threshold": 0,
a41c76
-        "encrypted": false,
a41c76
-        "bps": 0,
a41c76
-        "bps_rd": 0,
a41c76
-        "cache": {
a41c76
-            "no-flush": false,
a41c76
-            "direct": false,
a41c76
-            "writeback": true
a41c76
-        },
a41c76
-        "file": "/tmp/pull4.1575911540",
a41c76
-        "encryption_key_missing": false
a41c76
+    "iops_wr": 0,
a41c76
+    "ro": true,
a41c76
+    "node-name": "libvirt-2-format",
a41c76
+    "backing_file_depth": 0,
a41c76
+    "drv": "qcow2",
a41c76
+    "iops": 0,
a41c76
+    "bps_wr": 0,
a41c76
+    "write_threshold": 0,
a41c76
+    "backing_file": "/tmp/bitmaps.1591792930",
a41c76
+    "dirty-bitmaps": [
a41c76
+      {
a41c76
+        "name": "c",
a41c76
+        "recording": true,
a41c76
+        "persistent": true,
a41c76
+        "busy": false,
a41c76
+        "status": "active",
a41c76
+        "granularity": 65536,
a41c76
+        "count": 0
a41c76
+      },
a41c76
+      {
a41c76
+        "name": "b",
a41c76
+        "recording": true,
a41c76
+        "persistent": true,
a41c76
+        "busy": false,
a41c76
+        "status": "active",
a41c76
+        "granularity": 65536,
a41c76
+        "count": 0
a41c76
+      },
a41c76
+      {
a41c76
+        "name": "a",
a41c76
+        "recording": true,
a41c76
+        "persistent": true,
a41c76
+        "busy": false,
a41c76
+        "status": "active",
a41c76
+        "granularity": 65536,
a41c76
+        "count": 0
a41c76
+      },
a41c76
+      {
a41c76
+        "name": "d",
a41c76
+        "recording": true,
a41c76
+        "persistent": true,
a41c76
+        "busy": false,
a41c76
+        "status": "active",
a41c76
+        "granularity": 65536,
a41c76
+        "count": 0
a41c76
+      }
a41c76
+    ],
a41c76
+    "encrypted": false,
a41c76
+    "bps": 0,
a41c76
+    "bps_rd": 0,
a41c76
+    "cache": {
a41c76
+      "no-flush": false,
a41c76
+      "direct": false,
a41c76
+      "writeback": true
a41c76
     },
a41c76
-    {
a41c76
-        "iops_rd": 0,
a41c76
-        "detect_zeroes": "off",
a41c76
-        "image": {
a41c76
-            "backing-image": {
a41c76
-                "backing-image": {
a41c76
-                    "virtual-size": 10485760,
a41c76
-                    "filename": "/tmp/pull4.qcow2",
a41c76
-                    "cluster-size": 65536,
a41c76
-                    "format": "qcow2",
a41c76
-                    "actual-size": 208896,
a41c76
-                    "format-specific": {
a41c76
-                        "type": "qcow2",
a41c76
-                        "data": {
a41c76
-                            "compat": "1.1",
a41c76
-                            "lazy-refcounts": false,
a41c76
-                            "bitmaps": [
a41c76
-                                {
a41c76
-                                    "flags": [
a41c76
-                                        "auto"
a41c76
-                                    ],
a41c76
-                                    "name": "a",
a41c76
-                                    "granularity": 65536
a41c76
-                                }
a41c76
-                            ],
a41c76
-                            "refcount-bits": 16,
a41c76
-                            "corrupt": false
a41c76
-                        }
a41c76
-                    },
a41c76
-                    "dirty-flag": false
a41c76
-                },
a41c76
-                "backing-filename-format": "qcow2",
a41c76
-                "virtual-size": 10485760,
a41c76
-                "filename": "/tmp/pull4.1575911522",
a41c76
-                "cluster-size": 65536,
a41c76
-                "format": "qcow2",
a41c76
-                "actual-size": 208896,
a41c76
-                "format-specific": {
a41c76
-                    "type": "qcow2",
a41c76
-                    "data": {
a41c76
-                        "compat": "1.1",
a41c76
-                        "lazy-refcounts": false,
a41c76
-                        "bitmaps": [
a41c76
-                            {
a41c76
-                                "flags": [
a41c76
-                                    "auto"
a41c76
-                                ],
a41c76
-                                "name": "a",
a41c76
-                                "granularity": 65536
a41c76
-                            }
a41c76
-                        ],
a41c76
-                        "refcount-bits": 16,
a41c76
-                        "corrupt": false
a41c76
-                    }
a41c76
-                },
a41c76
-                "full-backing-filename": "/tmp/pull4.qcow2",
a41c76
-                "backing-filename": "/tmp/pull4.qcow2",
a41c76
-                "dirty-flag": false
a41c76
-            },
a41c76
-            "backing-filename-format": "qcow2",
a41c76
-            "virtual-size": 10485760,
a41c76
-            "filename": "/tmp/pull4.1575911527",
a41c76
-            "cluster-size": 65536,
a41c76
-            "format": "qcow2",
a41c76
-            "actual-size": 217088,
a41c76
-            "format-specific": {
a41c76
-                "type": "qcow2",
a41c76
-                "data": {
a41c76
-                    "compat": "1.1",
a41c76
-                    "lazy-refcounts": false,
a41c76
-                    "bitmaps": [
a41c76
-                        {
a41c76
-                            "flags": [
a41c76
-                                "auto"
a41c76
-                            ],
a41c76
-                            "name": "c",
a41c76
-                            "granularity": 65536
a41c76
-                        },
a41c76
-                        {
a41c76
-                            "flags": [
a41c76
-
a41c76
-                            ],
a41c76
-                            "name": "b",
a41c76
-                            "granularity": 65536
a41c76
-                        },
a41c76
-                        {
a41c76
-                            "flags": [
a41c76
-
a41c76
-                            ],
a41c76
-                            "name": "a",
a41c76
-                            "granularity": 65536
a41c76
-                        }
a41c76
-                    ],
a41c76
-                    "refcount-bits": 16,
a41c76
-                    "corrupt": false
a41c76
-                }
a41c76
-            },
a41c76
-            "full-backing-filename": "/tmp/pull4.1575911522",
a41c76
-            "backing-filename": "/tmp/pull4.1575911522",
a41c76
-            "dirty-flag": false
a41c76
-        },
a41c76
-        "iops_wr": 0,
a41c76
-        "ro": true,
a41c76
-        "node-name": "libvirt-3-format",
a41c76
-        "backing_file_depth": 2,
a41c76
-        "drv": "qcow2",
a41c76
-        "iops": 0,
a41c76
-        "bps_wr": 0,
a41c76
-        "write_threshold": 0,
a41c76
-        "backing_file": "/tmp/pull4.1575911522",
a41c76
-        "dirty-bitmaps": [
a41c76
+    "file": "/tmp/bitmaps.1591792938",
a41c76
+    "encryption_key_missing": false
a41c76
+  },
a41c76
+  {
a41c76
+    "iops_rd": 0,
a41c76
+    "detect_zeroes": "off",
a41c76
+    "image": {
a41c76
+      "virtual-size": 524800,
a41c76
+      "filename": "/tmp/bitmaps.1591792938",
a41c76
+      "format": "file",
a41c76
+      "actual-size": 221184,
a41c76
+      "dirty-flag": false
a41c76
+    },
a41c76
+    "iops_wr": 0,
a41c76
+    "ro": false,
a41c76
+    "node-name": "libvirt-2-storage",
a41c76
+    "backing_file_depth": 0,
a41c76
+    "drv": "file",
a41c76
+    "iops": 0,
a41c76
+    "bps_wr": 0,
a41c76
+    "write_threshold": 0,
a41c76
+    "encrypted": false,
a41c76
+    "bps": 0,
a41c76
+    "bps_rd": 0,
a41c76
+    "cache": {
a41c76
+      "no-flush": false,
a41c76
+      "direct": false,
a41c76
+      "writeback": true
a41c76
+    },
a41c76
+    "file": "/tmp/bitmaps.1591792938",
a41c76
+    "encryption_key_missing": false
a41c76
+  },
a41c76
+  {
a41c76
+    "iops_rd": 0,
a41c76
+    "detect_zeroes": "off",
a41c76
+    "image": {
a41c76
+      "backing-filename-format": "qcow2",
a41c76
+      "virtual-size": 104857600,
a41c76
+      "filename": "/tmp/bitmaps.1591792930",
a41c76
+      "cluster-size": 65536,
a41c76
+      "format": "qcow2",
a41c76
+      "actual-size": 217088,
a41c76
+      "format-specific": {
a41c76
+        "type": "qcow2",
a41c76
+        "data": {
a41c76
+          "compat": "1.1",
a41c76
+          "compression-type": "zlib",
a41c76
+          "lazy-refcounts": false,
a41c76
+          "bitmaps": [
a41c76
             {
a41c76
-                "name": "a",
a41c76
-                "recording": false,
a41c76
-                "persistent": true,
a41c76
-                "busy": false,
a41c76
-                "status": "disabled",
a41c76
-                "granularity": 65536,
a41c76
-                "count": 0
a41c76
+              "flags": [
a41c76
+                "auto"
a41c76
+              ],
a41c76
+              "name": "c",
a41c76
+              "granularity": 65536
a41c76
             },
a41c76
             {
a41c76
-                "name": "b",
a41c76
-                "recording": false,
a41c76
-                "persistent": true,
a41c76
-                "busy": false,
a41c76
-                "status": "disabled",
a41c76
-                "granularity": 65536,
a41c76
-                "count": 0
a41c76
+              "flags": [
a41c76
+                "auto"
a41c76
+              ],
a41c76
+              "name": "b",
a41c76
+              "granularity": 65536
a41c76
             },
a41c76
             {
a41c76
-                "name": "c",
a41c76
-                "recording": true,
a41c76
-                "persistent": true,
a41c76
-                "busy": false,
a41c76
-                "status": "active",
a41c76
-                "granularity": 65536,
a41c76
-                "count": 0
a41c76
+              "flags": [
a41c76
+                "auto"
a41c76
+              ],
a41c76
+              "name": "a",
a41c76
+              "granularity": 65536
a41c76
             }
a41c76
-        ],
a41c76
-        "encrypted": false,
a41c76
-        "bps": 0,
a41c76
-        "bps_rd": 0,
a41c76
-        "cache": {
a41c76
-            "no-flush": false,
a41c76
-            "direct": false,
a41c76
-            "writeback": true
a41c76
-        },
a41c76
-        "file": "/tmp/pull4.1575911527",
a41c76
-        "encryption_key_missing": false
a41c76
+          ],
a41c76
+          "refcount-bits": 16,
a41c76
+          "corrupt": false
a41c76
+        }
a41c76
+      },
a41c76
+      "full-backing-filename": "/tmp/bitmaps.1591792925",
a41c76
+      "backing-filename": "/tmp/bitmaps.1591792925",
a41c76
+      "dirty-flag": false
a41c76
     },
a41c76
-    {
a41c76
-        "iops_rd": 0,
a41c76
-        "detect_zeroes": "off",
a41c76
-        "image": {
a41c76
-            "virtual-size": 459264,
a41c76
-            "filename": "/tmp/pull4.1575911527",
a41c76
-            "format": "file",
a41c76
-            "actual-size": 217088,
a41c76
-            "dirty-flag": false
a41c76
-        },
a41c76
-        "iops_wr": 0,
a41c76
-        "ro": false,
a41c76
-        "node-name": "libvirt-3-storage",
a41c76
-        "backing_file_depth": 0,
a41c76
-        "drv": "file",
a41c76
-        "iops": 0,
a41c76
-        "bps_wr": 0,
a41c76
-        "write_threshold": 0,
a41c76
-        "encrypted": false,
a41c76
-        "bps": 0,
a41c76
-        "bps_rd": 0,
a41c76
-        "cache": {
a41c76
-            "no-flush": false,
a41c76
-            "direct": false,
a41c76
-            "writeback": true
a41c76
-        },
a41c76
-        "file": "/tmp/pull4.1575911527",
a41c76
-        "encryption_key_missing": false
a41c76
+    "iops_wr": 0,
a41c76
+    "ro": true,
a41c76
+    "node-name": "libvirt-3-format",
a41c76
+    "backing_file_depth": 0,
a41c76
+    "drv": "qcow2",
a41c76
+    "iops": 0,
a41c76
+    "bps_wr": 0,
a41c76
+    "write_threshold": 0,
a41c76
+    "backing_file": "/tmp/bitmaps.1591792925",
a41c76
+    "dirty-bitmaps": [
a41c76
+      {
a41c76
+        "name": "a",
a41c76
+        "recording": true,
a41c76
+        "persistent": true,
a41c76
+        "busy": false,
a41c76
+        "status": "active",
a41c76
+        "granularity": 65536,
a41c76
+        "count": 0
a41c76
+      },
a41c76
+      {
a41c76
+        "name": "b",
a41c76
+        "recording": true,
a41c76
+        "persistent": true,
a41c76
+        "busy": false,
a41c76
+        "status": "active",
a41c76
+        "granularity": 65536,
a41c76
+        "count": 0
a41c76
+      },
a41c76
+      {
a41c76
+        "name": "c",
a41c76
+        "recording": true,
a41c76
+        "persistent": true,
a41c76
+        "busy": false,
a41c76
+        "status": "active",
a41c76
+        "granularity": 65536,
a41c76
+        "count": 0
a41c76
+      }
a41c76
+    ],
a41c76
+    "encrypted": false,
a41c76
+    "bps": 0,
a41c76
+    "bps_rd": 0,
a41c76
+    "cache": {
a41c76
+      "no-flush": false,
a41c76
+      "direct": false,
a41c76
+      "writeback": true
a41c76
     },
a41c76
-    {
a41c76
-        "iops_rd": 0,
a41c76
-        "detect_zeroes": "off",
a41c76
-        "image": {
a41c76
-            "backing-image": {
a41c76
-                "virtual-size": 10485760,
a41c76
-                "filename": "/tmp/pull4.qcow2",
a41c76
-                "cluster-size": 65536,
a41c76
-                "format": "qcow2",
a41c76
-                "actual-size": 208896,
a41c76
-                "format-specific": {
a41c76
-                    "type": "qcow2",
a41c76
-                    "data": {
a41c76
-                        "compat": "1.1",
a41c76
-                        "lazy-refcounts": false,
a41c76
-                        "bitmaps": [
a41c76
-                            {
a41c76
-                                "flags": [
a41c76
-                                    "auto"
a41c76
-                                ],
a41c76
-                                "name": "a",
a41c76
-                                "granularity": 65536
a41c76
-                            }
a41c76
-                        ],
a41c76
-                        "refcount-bits": 16,
a41c76
-                        "corrupt": false
a41c76
-                    }
a41c76
-                },
a41c76
-                "dirty-flag": false
a41c76
-            },
a41c76
-            "backing-filename-format": "qcow2",
a41c76
-            "virtual-size": 10485760,
a41c76
-            "filename": "/tmp/pull4.1575911522",
a41c76
-            "cluster-size": 65536,
a41c76
-            "format": "qcow2",
a41c76
-            "actual-size": 208896,
a41c76
-            "format-specific": {
a41c76
-                "type": "qcow2",
a41c76
-                "data": {
a41c76
-                    "compat": "1.1",
a41c76
-                    "lazy-refcounts": false,
a41c76
-                    "bitmaps": [
a41c76
-                        {
a41c76
-                            "flags": [
a41c76
-                                "auto"
a41c76
-                            ],
a41c76
-                            "name": "a",
a41c76
-                            "granularity": 65536
a41c76
-                        }
a41c76
-                    ],
a41c76
-                    "refcount-bits": 16,
a41c76
-                    "corrupt": false
a41c76
-                }
a41c76
-            },
a41c76
-            "full-backing-filename": "/tmp/pull4.qcow2",
a41c76
-            "backing-filename": "/tmp/pull4.qcow2",
a41c76
-            "dirty-flag": false
a41c76
-        },
a41c76
-        "iops_wr": 0,
a41c76
-        "ro": true,
a41c76
-        "node-name": "libvirt-4-format",
a41c76
-        "backing_file_depth": 1,
a41c76
-        "drv": "qcow2",
a41c76
-        "iops": 0,
a41c76
-        "bps_wr": 0,
a41c76
-        "write_threshold": 0,
a41c76
-        "backing_file": "/tmp/pull4.qcow2",
a41c76
-        "dirty-bitmaps": [
a41c76
+    "file": "/tmp/bitmaps.1591792930",
a41c76
+    "encryption_key_missing": false
a41c76
+  },
a41c76
+  {
a41c76
+    "iops_rd": 0,
a41c76
+    "detect_zeroes": "off",
a41c76
+    "image": {
a41c76
+      "virtual-size": 459264,
a41c76
+      "filename": "/tmp/bitmaps.1591792930",
a41c76
+      "format": "file",
a41c76
+      "actual-size": 217088,
a41c76
+      "dirty-flag": false
a41c76
+    },
a41c76
+    "iops_wr": 0,
a41c76
+    "ro": false,
a41c76
+    "node-name": "libvirt-3-storage",
a41c76
+    "backing_file_depth": 0,
a41c76
+    "drv": "file",
a41c76
+    "iops": 0,
a41c76
+    "bps_wr": 0,
a41c76
+    "write_threshold": 0,
a41c76
+    "encrypted": false,
a41c76
+    "bps": 0,
a41c76
+    "bps_rd": 0,
a41c76
+    "cache": {
a41c76
+      "no-flush": false,
a41c76
+      "direct": false,
a41c76
+      "writeback": true
a41c76
+    },
a41c76
+    "file": "/tmp/bitmaps.1591792930",
a41c76
+    "encryption_key_missing": false
a41c76
+  },
a41c76
+  {
a41c76
+    "iops_rd": 0,
a41c76
+    "detect_zeroes": "off",
a41c76
+    "image": {
a41c76
+      "backing-filename-format": "qcow2",
a41c76
+      "virtual-size": 104857600,
a41c76
+      "filename": "/tmp/bitmaps.1591792925",
a41c76
+      "cluster-size": 65536,
a41c76
+      "format": "qcow2",
a41c76
+      "actual-size": 208896,
a41c76
+      "format-specific": {
a41c76
+        "type": "qcow2",
a41c76
+        "data": {
a41c76
+          "compat": "1.1",
a41c76
+          "compression-type": "zlib",
a41c76
+          "lazy-refcounts": false,
a41c76
+          "bitmaps": [
a41c76
             {
a41c76
-                "name": "a",
a41c76
-                "recording": true,
a41c76
-                "persistent": true,
a41c76
-                "busy": false,
a41c76
-                "status": "active",
a41c76
-                "granularity": 65536,
a41c76
-                "count": 0
a41c76
+              "flags": [
a41c76
+                "auto"
a41c76
+              ],
a41c76
+              "name": "a",
a41c76
+              "granularity": 65536
a41c76
             }
a41c76
-        ],
a41c76
-        "encrypted": false,
a41c76
-        "bps": 0,
a41c76
-        "bps_rd": 0,
a41c76
-        "cache": {
a41c76
-            "no-flush": false,
a41c76
-            "direct": false,
a41c76
-            "writeback": true
a41c76
-        },
a41c76
-        "file": "/tmp/pull4.1575911522",
a41c76
-        "encryption_key_missing": false
a41c76
+          ],
a41c76
+          "refcount-bits": 16,
a41c76
+          "corrupt": false
a41c76
+        }
a41c76
+      },
a41c76
+      "full-backing-filename": "/tmp/bitmaps.qcow2",
a41c76
+      "backing-filename": "/tmp/bitmaps.qcow2",
a41c76
+      "dirty-flag": false
a41c76
     },
a41c76
-    {
a41c76
-        "iops_rd": 0,
a41c76
-        "detect_zeroes": "off",
a41c76
-        "image": {
a41c76
-            "virtual-size": 328192,
a41c76
-            "filename": "/tmp/pull4.1575911522",
a41c76
-            "format": "file",
a41c76
-            "actual-size": 208896,
a41c76
-            "dirty-flag": false
a41c76
-        },
a41c76
-        "iops_wr": 0,
a41c76
-        "ro": false,
a41c76
-        "node-name": "libvirt-4-storage",
a41c76
-        "backing_file_depth": 0,
a41c76
-        "drv": "file",
a41c76
-        "iops": 0,
a41c76
-        "bps_wr": 0,
a41c76
-        "write_threshold": 0,
a41c76
-        "encrypted": false,
a41c76
-        "bps": 0,
a41c76
-        "bps_rd": 0,
a41c76
-        "cache": {
a41c76
-            "no-flush": false,
a41c76
-            "direct": false,
a41c76
-            "writeback": true
a41c76
-        },
a41c76
-        "file": "/tmp/pull4.1575911522",
a41c76
-        "encryption_key_missing": false
a41c76
+    "iops_wr": 0,
a41c76
+    "ro": true,
a41c76
+    "node-name": "libvirt-4-format",
a41c76
+    "backing_file_depth": 0,
a41c76
+    "drv": "qcow2",
a41c76
+    "iops": 0,
a41c76
+    "bps_wr": 0,
a41c76
+    "write_threshold": 0,
a41c76
+    "backing_file": "/tmp/bitmaps.qcow2",
a41c76
+    "dirty-bitmaps": [
a41c76
+      {
a41c76
+        "name": "a",
a41c76
+        "recording": true,
a41c76
+        "persistent": true,
a41c76
+        "busy": false,
a41c76
+        "status": "active",
a41c76
+        "granularity": 65536,
a41c76
+        "count": 0
a41c76
+      }
a41c76
+    ],
a41c76
+    "encrypted": false,
a41c76
+    "bps": 0,
a41c76
+    "bps_rd": 0,
a41c76
+    "cache": {
a41c76
+      "no-flush": false,
a41c76
+      "direct": false,
a41c76
+      "writeback": true
a41c76
     },
a41c76
-    {
a41c76
-        "iops_rd": 0,
a41c76
-        "detect_zeroes": "off",
a41c76
-        "image": {
a41c76
-            "virtual-size": 10485760,
a41c76
-            "filename": "/tmp/pull4.qcow2",
a41c76
-            "cluster-size": 65536,
a41c76
-            "format": "qcow2",
a41c76
-            "actual-size": 208896,
a41c76
-            "format-specific": {
a41c76
-                "type": "qcow2",
a41c76
-                "data": {
a41c76
-                    "compat": "1.1",
a41c76
-                    "lazy-refcounts": false,
a41c76
-                    "bitmaps": [
a41c76
-                        {
a41c76
-                            "flags": [
a41c76
-                                "auto"
a41c76
-                            ],
a41c76
-                            "name": "a",
a41c76
-                            "granularity": 65536
a41c76
-                        }
a41c76
-                    ],
a41c76
-                    "refcount-bits": 16,
a41c76
-                    "corrupt": false
a41c76
-                }
a41c76
-            },
a41c76
-            "dirty-flag": false
a41c76
-        },
a41c76
-        "iops_wr": 0,
a41c76
-        "ro": true,
a41c76
-        "node-name": "libvirt-5-format",
a41c76
-        "backing_file_depth": 0,
a41c76
-        "drv": "qcow2",
a41c76
-        "iops": 0,
a41c76
-        "bps_wr": 0,
a41c76
-        "write_threshold": 0,
a41c76
-        "dirty-bitmaps": [
a41c76
+    "file": "/tmp/bitmaps.1591792925",
a41c76
+    "encryption_key_missing": false
a41c76
+  },
a41c76
+  {
a41c76
+    "iops_rd": 0,
a41c76
+    "detect_zeroes": "off",
a41c76
+    "image": {
a41c76
+      "virtual-size": 328192,
a41c76
+      "filename": "/tmp/bitmaps.1591792925",
a41c76
+      "format": "file",
a41c76
+      "actual-size": 208896,
a41c76
+      "dirty-flag": false
a41c76
+    },
a41c76
+    "iops_wr": 0,
a41c76
+    "ro": false,
a41c76
+    "node-name": "libvirt-4-storage",
a41c76
+    "backing_file_depth": 0,
a41c76
+    "drv": "file",
a41c76
+    "iops": 0,
a41c76
+    "bps_wr": 0,
a41c76
+    "write_threshold": 0,
a41c76
+    "encrypted": false,
a41c76
+    "bps": 0,
a41c76
+    "bps_rd": 0,
a41c76
+    "cache": {
a41c76
+      "no-flush": false,
a41c76
+      "direct": false,
a41c76
+      "writeback": true
a41c76
+    },
a41c76
+    "file": "/tmp/bitmaps.1591792925",
a41c76
+    "encryption_key_missing": false
a41c76
+  },
a41c76
+  {
a41c76
+    "iops_rd": 0,
a41c76
+    "detect_zeroes": "off",
a41c76
+    "image": {
a41c76
+      "virtual-size": 104857600,
a41c76
+      "filename": "/tmp/bitmaps.qcow2",
a41c76
+      "cluster-size": 65536,
a41c76
+      "format": "qcow2",
a41c76
+      "actual-size": 208896,
a41c76
+      "format-specific": {
a41c76
+        "type": "qcow2",
a41c76
+        "data": {
a41c76
+          "compat": "1.1",
a41c76
+          "compression-type": "zlib",
a41c76
+          "lazy-refcounts": false,
a41c76
+          "bitmaps": [
a41c76
             {
a41c76
-                "name": "a",
a41c76
-                "recording": true,
a41c76
-                "persistent": true,
a41c76
-                "busy": false,
a41c76
-                "status": "active",
a41c76
-                "granularity": 65536,
a41c76
-                "count": 0
a41c76
+              "flags": [
a41c76
+                "auto"
a41c76
+              ],
a41c76
+              "name": "a",
a41c76
+              "granularity": 65536
a41c76
             }
a41c76
-        ],
a41c76
-        "encrypted": false,
a41c76
-        "bps": 0,
a41c76
-        "bps_rd": 0,
a41c76
-        "cache": {
a41c76
-            "no-flush": false,
a41c76
-            "direct": false,
a41c76
-            "writeback": true
a41c76
-        },
a41c76
-        "file": "/tmp/pull4.qcow2",
a41c76
-        "encryption_key_missing": false
a41c76
+          ],
a41c76
+          "refcount-bits": 16,
a41c76
+          "corrupt": false
a41c76
+        }
a41c76
+      },
a41c76
+      "dirty-flag": false
a41c76
+    },
a41c76
+    "iops_wr": 0,
a41c76
+    "ro": true,
a41c76
+    "node-name": "libvirt-5-format",
a41c76
+    "backing_file_depth": 0,
a41c76
+    "drv": "qcow2",
a41c76
+    "iops": 0,
a41c76
+    "bps_wr": 0,
a41c76
+    "write_threshold": 0,
a41c76
+    "dirty-bitmaps": [
a41c76
+      {
a41c76
+        "name": "a",
a41c76
+        "recording": true,
a41c76
+        "persistent": true,
a41c76
+        "busy": false,
a41c76
+        "status": "active",
a41c76
+        "granularity": 65536,
a41c76
+        "count": 0
a41c76
+      }
a41c76
+    ],
a41c76
+    "encrypted": false,
a41c76
+    "bps": 0,
a41c76
+    "bps_rd": 0,
a41c76
+    "cache": {
a41c76
+      "no-flush": false,
a41c76
+      "direct": false,
a41c76
+      "writeback": true
a41c76
+    },
a41c76
+    "file": "/tmp/bitmaps.qcow2",
a41c76
+    "encryption_key_missing": false
a41c76
+  },
a41c76
+  {
a41c76
+    "iops_rd": 0,
a41c76
+    "detect_zeroes": "off",
a41c76
+    "image": {
a41c76
+      "virtual-size": 328192,
a41c76
+      "filename": "/tmp/bitmaps.qcow2",
a41c76
+      "format": "file",
a41c76
+      "actual-size": 208896,
a41c76
+      "dirty-flag": false
a41c76
+    },
a41c76
+    "iops_wr": 0,
a41c76
+    "ro": false,
a41c76
+    "node-name": "libvirt-5-storage",
a41c76
+    "backing_file_depth": 0,
a41c76
+    "drv": "file",
a41c76
+    "iops": 0,
a41c76
+    "bps_wr": 0,
a41c76
+    "write_threshold": 0,
a41c76
+    "encrypted": false,
a41c76
+    "bps": 0,
a41c76
+    "bps_rd": 0,
a41c76
+    "cache": {
a41c76
+      "no-flush": false,
a41c76
+      "direct": false,
a41c76
+      "writeback": true
a41c76
     },
a41c76
-    {
a41c76
-        "iops_rd": 0,
a41c76
-        "detect_zeroes": "off",
a41c76
-        "image": {
a41c76
-            "virtual-size": 328192,
a41c76
-            "filename": "/tmp/pull4.qcow2",
a41c76
-            "format": "file",
a41c76
-            "actual-size": 208896,
a41c76
-            "dirty-flag": false
a41c76
-        },
a41c76
-        "iops_wr": 0,
a41c76
-        "ro": false,
a41c76
-        "node-name": "libvirt-5-storage",
a41c76
-        "backing_file_depth": 0,
a41c76
-        "drv": "file",
a41c76
-        "iops": 0,
a41c76
-        "bps_wr": 0,
a41c76
-        "write_threshold": 0,
a41c76
-        "encrypted": false,
a41c76
-        "bps": 0,
a41c76
-        "bps_rd": 0,
a41c76
-        "cache": {
a41c76
-            "no-flush": false,
a41c76
-            "direct": false,
a41c76
-            "writeback": true
a41c76
-        },
a41c76
-        "file": "/tmp/pull4.qcow2",
a41c76
-        "encryption_key_missing": false
a41c76
-    }
a41c76
+    "file": "/tmp/bitmaps.qcow2",
a41c76
+    "encryption_key_missing": false
a41c76
+  }
a41c76
 ]
a41c76
diff --git a/tests/qemublocktestdata/bitmap/snapshots.out b/tests/qemublocktestdata/bitmap/snapshots.out
a41c76
index 5dafe946cf..24ca27e4d8 100644
a41c76
--- a/tests/qemublocktestdata/bitmap/snapshots.out
a41c76
+++ b/tests/qemublocktestdata/bitmap/snapshots.out
a41c76
@@ -1,12 +1,17 @@
a41c76
 libvirt-1-format:
a41c76
-        d: record:0 busy:0 persist:1 inconsist:0 gran:65536 dirty:0
a41c76
+        d: record:1 busy:0 persist:1 inconsist:0 gran:65536 dirty:0
a41c76
+        a: record:1 busy:0 persist:1 inconsist:0 gran:65536 dirty:0
a41c76
+        b: record:1 busy:0 persist:1 inconsist:0 gran:65536 dirty:0
a41c76
+        c: record:1 busy:0 persist:1 inconsist:0 gran:65536 dirty:0
a41c76
   current: record:1 busy:0 persist:1 inconsist:0 gran:65536 dirty:0
a41c76
 libvirt-2-format:
a41c76
-        c: record:0 busy:0 persist:1 inconsist:0 gran:65536 dirty:0
a41c76
+        c: record:1 busy:0 persist:1 inconsist:0 gran:65536 dirty:0
a41c76
+        b: record:1 busy:0 persist:1 inconsist:0 gran:65536 dirty:0
a41c76
+        a: record:1 busy:0 persist:1 inconsist:0 gran:65536 dirty:0
a41c76
         d: record:1 busy:0 persist:1 inconsist:0 gran:65536 dirty:0
a41c76
 libvirt-3-format:
a41c76
-        a: record:0 busy:0 persist:1 inconsist:0 gran:65536 dirty:0
a41c76
-        b: record:0 busy:0 persist:1 inconsist:0 gran:65536 dirty:0
a41c76
+        a: record:1 busy:0 persist:1 inconsist:0 gran:65536 dirty:0
a41c76
+        b: record:1 busy:0 persist:1 inconsist:0 gran:65536 dirty:0
a41c76
         c: record:1 busy:0 persist:1 inconsist:0 gran:65536 dirty:0
a41c76
 libvirt-4-format:
a41c76
         a: record:1 busy:0 persist:1 inconsist:0 gran:65536 dirty:0
a41c76
-- 
a41c76
2.27.0
a41c76