xref: /openbmc/qemu/tests/qemu-iotests/254.out (revision b8116f4c)
1{"execute": "block-dirty-bitmap-add", "arguments": {"name": "bitmap0", "node": "drive0"}}
2{"return": {}}
3{"execute": "block-dirty-bitmap-add", "arguments": {"name": "bitmap1", "node": "drive0", "persistent": true}}
4{"return": {}}
5{"execute": "block-dirty-bitmap-add", "arguments": {"name": "bitmap2", "node": "drive0", "persistent": true}}
6{"return": {}}
7{
8  "execute": "transaction",
9  "arguments": {
10    "actions": [
11      {
12        "data": {
13          "device": "drive0",
14          "snapshot-file": "TEST_DIR/PID-top",
15          "snapshot-node-name": "snap"
16        },
17        "type": "blockdev-snapshot-sync"
18      },
19      {
20        "data": {
21          "name": "bitmap0",
22          "node": "snap"
23        },
24        "type": "block-dirty-bitmap-add"
25      },
26      {
27        "data": {
28          "bitmaps": [
29            {
30              "name": "bitmap0",
31              "node": "base"
32            }
33          ],
34          "node": "snap",
35          "target": "bitmap0"
36        },
37        "type": "block-dirty-bitmap-merge"
38      },
39      {
40        "data": {
41          "name": "bitmap1",
42          "node": "snap",
43          "persistent": true
44        },
45        "type": "block-dirty-bitmap-add"
46      },
47      {
48        "data": {
49          "bitmaps": [
50            {
51              "name": "bitmap1",
52              "node": "base"
53            }
54          ],
55          "node": "snap",
56          "target": "bitmap1"
57        },
58        "type": "block-dirty-bitmap-merge"
59      },
60      {
61        "data": {
62          "name": "bitmap2",
63          "node": "snap",
64          "persistent": true
65        },
66        "type": "block-dirty-bitmap-add"
67      },
68      {
69        "data": {
70          "bitmaps": [
71            {
72              "name": "bitmap2",
73              "node": "base"
74            }
75          ],
76          "node": "snap",
77          "target": "bitmap2"
78        },
79        "type": "block-dirty-bitmap-merge"
80      },
81      {
82        "data": {
83          "name": "bitmap2",
84          "node": "base"
85        },
86        "type": "block-dirty-bitmap-remove"
87      }
88    ]
89  }
90}
91{
92  "return": {}
93}
94query-block: device = drive0, node-name = snap, dirty-bitmaps:
95[
96  {
97    "busy": false,
98    "count": 524288,
99    "granularity": 65536,
100    "name": "bitmap2",
101    "persistent": true,
102    "recording": true
103  },
104  {
105    "busy": false,
106    "count": 524288,
107    "granularity": 65536,
108    "name": "bitmap1",
109    "persistent": true,
110    "recording": true
111  },
112  {
113    "busy": false,
114    "count": 524288,
115    "granularity": 65536,
116    "name": "bitmap0",
117    "persistent": false,
118    "recording": true
119  }
120]
121
122bitmaps in backing image:
123[
124  {
125    "flags": [
126      "auto"
127    ],
128    "granularity": 65536,
129    "name": "bitmap1"
130  }
131]
132