block: implement bdrv_snapshot_goto for blkreplay
[qemu/ar7.git] / tests / qemu-iotests / 212.out
blob1538d679bef43d68af2d409c96a38d683d06823b
1 === Successful image creation (defaults) ===
3 {"execute": "blockdev-create", "arguments": {"job-id": "job0", "options": {"driver": "file", "filename": "TEST_DIR/PID-t.parallels", "size": 0}}}
4 {"return": {}}
5 {"execute": "job-dismiss", "arguments": {"id": "job0"}}
6 {"return": {}}
8 {"execute": "blockdev-add", "arguments": {"driver": "file", "filename": "TEST_DIR/PID-t.parallels", "node-name": "imgfile"}}
9 {"return": {}}
10 {"execute": "blockdev-create", "arguments": {"job-id": "job0", "options": {"driver": "parallels", "file": "imgfile", "size": 134217728}}}
11 {"return": {}}
12 {"execute": "job-dismiss", "arguments": {"id": "job0"}}
13 {"return": {}}
15 image: TEST_IMG
16 file format: IMGFMT
17 virtual size: 128 MiB (134217728 bytes)
19 === Successful image creation (explicit defaults) ===
21 {"execute": "blockdev-create", "arguments": {"job-id": "job0", "options": {"driver": "file", "filename": "TEST_DIR/PID-t.parallels", "size": 0}}}
22 {"return": {}}
23 {"execute": "job-dismiss", "arguments": {"id": "job0"}}
24 {"return": {}}
26 {"execute": "blockdev-create", "arguments": {"job-id": "job0", "options": {"cluster-size": 1048576, "driver": "parallels", "file": {"driver": "file", "filename": "TEST_DIR/PID-t.parallels"}, "size": 67108864}}}
27 {"return": {}}
28 {"execute": "job-dismiss", "arguments": {"id": "job0"}}
29 {"return": {}}
31 image: TEST_IMG
32 file format: IMGFMT
33 virtual size: 64 MiB (67108864 bytes)
35 === Successful image creation (with non-default options) ===
37 {"execute": "blockdev-create", "arguments": {"job-id": "job0", "options": {"driver": "file", "filename": "TEST_DIR/PID-t.parallels", "size": 0}}}
38 {"return": {}}
39 {"execute": "job-dismiss", "arguments": {"id": "job0"}}
40 {"return": {}}
42 {"execute": "blockdev-create", "arguments": {"job-id": "job0", "options": {"cluster-size": 65536, "driver": "parallels", "file": {"driver": "file", "filename": "TEST_DIR/PID-t.parallels"}, "size": 33554432}}}
43 {"return": {}}
44 {"execute": "job-dismiss", "arguments": {"id": "job0"}}
45 {"return": {}}
47 image: TEST_IMG
48 file format: IMGFMT
49 virtual size: 32 MiB (33554432 bytes)
51 === Invalid BlockdevRef ===
53 {"execute": "blockdev-create", "arguments": {"job-id": "job0", "options": {"driver": "parallels", "file": "this doesn't exist", "size": 33554432}}}
54 {"return": {}}
55 Job failed: Cannot find device=this doesn't exist nor node_name=this doesn't exist
56 {"execute": "job-dismiss", "arguments": {"id": "job0"}}
57 {"return": {}}
59 === Zero size ===
61 {"execute": "blockdev-create", "arguments": {"job-id": "job0", "options": {"driver": "parallels", "file": "node0", "size": 0}}}
62 {"return": {}}
63 {"execute": "job-dismiss", "arguments": {"id": "job0"}}
64 {"return": {}}
66 image: TEST_IMG
67 file format: IMGFMT
68 virtual size: 0 B (0 bytes)
70 === Maximum size ===
72 {"execute": "blockdev-create", "arguments": {"job-id": "job0", "options": {"driver": "parallels", "file": "node0", "size": 4503599627369984}}}
73 {"return": {}}
74 {"execute": "job-dismiss", "arguments": {"id": "job0"}}
75 {"return": {}}
77 image: TEST_IMG
78 file format: IMGFMT
79 virtual size: 4 PiB (4503599627369984 bytes)
81 === Invalid sizes ===
83 {"execute": "blockdev-create", "arguments": {"job-id": "job0", "options": {"driver": "parallels", "file": "node0", "size": 1234}}}
84 {"return": {}}
85 Job failed: Image size must be a multiple of 512 bytes
86 {"execute": "job-dismiss", "arguments": {"id": "job0"}}
87 {"return": {}}
89 {"execute": "blockdev-create", "arguments": {"job-id": "job0", "options": {"driver": "parallels", "file": "node0", "size": 18446744073709551104}}}
90 {"return": {}}
91 Job failed: Image size is too large for this cluster size
92 {"execute": "job-dismiss", "arguments": {"id": "job0"}}
93 {"return": {}}
95 {"execute": "blockdev-create", "arguments": {"job-id": "job0", "options": {"driver": "parallels", "file": "node0", "size": 9223372036854775808}}}
96 {"return": {}}
97 Job failed: Image size is too large for this cluster size
98 {"execute": "job-dismiss", "arguments": {"id": "job0"}}
99 {"return": {}}
101 {"execute": "blockdev-create", "arguments": {"job-id": "job0", "options": {"driver": "parallels", "file": "node0", "size": 9223372036854775296}}}
102 {"return": {}}
103 Job failed: Image size is too large for this cluster size
104 {"execute": "job-dismiss", "arguments": {"id": "job0"}}
105 {"return": {}}
107 {"execute": "blockdev-create", "arguments": {"job-id": "job0", "options": {"driver": "parallels", "file": "node0", "size": 4503599627370497}}}
108 {"return": {}}
109 Job failed: Image size is too large for this cluster size
110 {"execute": "job-dismiss", "arguments": {"id": "job0"}}
111 {"return": {}}
113 === Invalid cluster size ===
115 {"execute": "blockdev-create", "arguments": {"job-id": "job0", "options": {"cluster-size": 1234, "driver": "parallels", "file": "node0", "size": 67108864}}}
116 {"return": {}}
117 Job failed: Cluster size must be a multiple of 512 bytes
118 {"execute": "job-dismiss", "arguments": {"id": "job0"}}
119 {"return": {}}
121 {"execute": "blockdev-create", "arguments": {"job-id": "job0", "options": {"cluster-size": 128, "driver": "parallels", "file": "node0", "size": 67108864}}}
122 {"return": {}}
123 Job failed: Cluster size must be a multiple of 512 bytes
124 {"execute": "job-dismiss", "arguments": {"id": "job0"}}
125 {"return": {}}
127 {"execute": "blockdev-create", "arguments": {"job-id": "job0", "options": {"cluster-size": 4294967296, "driver": "parallels", "file": "node0", "size": 67108864}}}
128 {"return": {}}
129 Job failed: Cluster size is too large
130 {"execute": "job-dismiss", "arguments": {"id": "job0"}}
131 {"return": {}}
133 {"execute": "blockdev-create", "arguments": {"job-id": "job0", "options": {"cluster-size": 9223372036854775808, "driver": "parallels", "file": "node0", "size": 67108864}}}
134 {"return": {}}
135 Job failed: Cluster size is too large
136 {"execute": "job-dismiss", "arguments": {"id": "job0"}}
137 {"return": {}}
139 {"execute": "blockdev-create", "arguments": {"job-id": "job0", "options": {"cluster-size": 18446744073709551104, "driver": "parallels", "file": "node0", "size": 67108864}}}
140 {"return": {}}
141 Job failed: Cluster size is too large
142 {"execute": "job-dismiss", "arguments": {"id": "job0"}}
143 {"return": {}}
145 {"execute": "blockdev-create", "arguments": {"job-id": "job0", "options": {"cluster-size": 0, "driver": "parallels", "file": "node0", "size": 67108864}}}
146 {"return": {}}
147 Job failed: Image size is too large for this cluster size
148 {"execute": "job-dismiss", "arguments": {"id": "job0"}}
149 {"return": {}}
151 {"execute": "blockdev-create", "arguments": {"job-id": "job0", "options": {"cluster-size": 512, "driver": "parallels", "file": "node0", "size": 281474976710656}}}
152 {"return": {}}
153 Job failed: Image size is too large for this cluster size
154 {"execute": "job-dismiss", "arguments": {"id": "job0"}}
155 {"return": {}}