xref: /openbmc/qemu/tests/qemu-iotests/254.out (revision 0221d73c)
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    "status": "active"
104  },
105  {
106    "busy": false,
107    "count": 524288,
108    "granularity": 65536,
109    "name": "bitmap1",
110    "persistent": true,
111    "recording": true,
112    "status": "active"
113  },
114  {
115    "busy": false,
116    "count": 524288,
117    "granularity": 65536,
118    "name": "bitmap0",
119    "persistent": false,
120    "recording": true,
121    "status": "active"
122  }
123]
124
125bitmaps in backing image:
126[
127  {
128    "flags": [
129      "auto"
130    ],
131    "granularity": 65536,
132    "name": "bitmap1"
133  }
134]
135