es1370: check total frame count against current frame
[qemu/ar7.git] / tests / qemu-iotests / 242.out
blob091b9126ce45e84b4b85d3f5f0f65e6bc39a56b5
1 Test 1
2 {"execute": "block-dirty-bitmap-add", "arguments": {"disabled": false, "granularity": 16384, "name": "bitmap-0", "node": "drive0", "persistent": false}}
3 {"return": {}}
4 wrote 262144/262144 bytes at offset 0
5 256 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
7 qemu-img info dump:
9 image: TEST_IMG
10 file format: IMGFMT
11 virtual size: 1 MiB (1048576 bytes)
12 cluster_size: 65536
13 Format specific information:
14     compat: 1.1
15     compression type: zlib
16     lazy refcounts: false
17     refcount bits: 16
18     corrupt: false
20 No bitmap in JSON format output
22 Test 2
23 {"execute": "block-dirty-bitmap-add", "arguments": {"disabled": true, "granularity": 32768, "name": "bitmap-1", "node": "drive0", "persistent": true}}
24 {"return": {}}
25 wrote 262144/262144 bytes at offset 262144
26 256 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
28 qemu-img info dump:
30 image: TEST_IMG
31 file format: IMGFMT
32 virtual size: 1 MiB (1048576 bytes)
33 cluster_size: 65536
34 Format specific information:
35     compat: 1.1
36     compression type: zlib
37     lazy refcounts: false
38     bitmaps:
39         [0]:
40             flags:
41             name: bitmap-1
42             granularity: 32768
43     refcount bits: 16
44     corrupt: false
46 The same bitmaps in JSON format:
48   {
49     "flags": [],
50     "granularity": 32768,
51     "name": "bitmap-1"
52   }
55 Test 3
56 {"execute": "block-dirty-bitmap-add", "arguments": {"disabled": false, "granularity": 65536, "name": "bitmap-2", "node": "drive0", "persistent": true}}
57 {"return": {}}
58 wrote 262144/262144 bytes at offset 524288
59 256 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
61 qemu-img info dump:
63 image: TEST_IMG
64 file format: IMGFMT
65 virtual size: 1 MiB (1048576 bytes)
66 cluster_size: 65536
67 Format specific information:
68     compat: 1.1
69     compression type: zlib
70     lazy refcounts: false
71     bitmaps:
72         [0]:
73             flags:
74             name: bitmap-1
75             granularity: 32768
76         [1]:
77             flags:
78                 [0]: auto
79             name: bitmap-2
80             granularity: 65536
81     refcount bits: 16
82     corrupt: false
84 The same bitmaps in JSON format:
86   {
87     "flags": [],
88     "granularity": 32768,
89     "name": "bitmap-1"
90   },
91   {
92     "flags": [
93       "auto"
94     ],
95     "granularity": 65536,
96     "name": "bitmap-2"
97   }
100 Test 4
101 Checking "in-use" flag...
102 qemu-img info dump:
104 image: TEST_IMG
105 file format: IMGFMT
106 virtual size: 1 MiB (1048576 bytes)
107 cluster_size: 65536
108 Format specific information:
109     compat: 1.1
110     compression type: zlib
111     lazy refcounts: false
112     bitmaps:
113         [0]:
114             flags:
115                 [0]: in-use
116             name: bitmap-1
117             granularity: 32768
118         [1]:
119             flags:
120                 [0]: in-use
121                 [1]: auto
122             name: bitmap-2
123             granularity: 65536
124     refcount bits: 16
125     corrupt: false
127 The same bitmaps in JSON format:
129   {
130     "flags": [
131       "in-use"
132     ],
133     "granularity": 32768,
134     "name": "bitmap-1"
135   },
136   {
137     "flags": [
138       "in-use",
139       "auto"
140     ],
141     "granularity": 65536,
142     "name": "bitmap-2"
143   }
146 Test 5
147 {"execute": "block-dirty-bitmap-add", "arguments": {"disabled": false, "granularity": 16384, "name": "bitmap-0", "node": "drive0", "persistent": true}}
148 {"return": {}}
149 Write an unknown bitmap flag '0x4' into a new QCOW2 image at offset 327695
150 qemu-img: Could not open 'TEST_IMG': Bitmap 'bitmap-0' doesn't satisfy the constraints
152 Unset the unknown bitmap flag '0x4' in the bitmap directory entry:
154 image: TEST_IMG
155 file format: IMGFMT
156 virtual size: 1 MiB (1048576 bytes)
157 cluster_size: 65536
158 Format specific information:
159     compat: 1.1
160     compression type: zlib
161     lazy refcounts: false
162     bitmaps:
163         [0]:
164             flags:
165                 [0]: auto
166             name: bitmap-0
167             granularity: 16384
168     refcount bits: 16
169     corrupt: false
171 Test complete