xref: /openbmc/qemu/tests/qemu-iotests/212.out (revision f7160f32)
1=== Successful image creation (defaults) ===
2
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": {}}
7
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": {}}
14
15image: TEST_IMG
16file format: IMGFMT
17virtual size: 128 MiB (134217728 bytes)
18
19=== Successful image creation (explicit defaults) ===
20
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": {}}
25
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": {}}
30
31image: TEST_IMG
32file format: IMGFMT
33virtual size: 64 MiB (67108864 bytes)
34
35=== Successful image creation (with non-default options) ===
36
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": {}}
41
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": {}}
46
47image: TEST_IMG
48file format: IMGFMT
49virtual size: 32 MiB (33554432 bytes)
50
51=== Invalid BlockdevRef ===
52
53{"execute": "blockdev-create", "arguments": {"job-id": "job0", "options": {"driver": "parallels", "file": "this doesn't exist", "size": 33554432}}}
54{"return": {}}
55Job failed: Cannot find device=this doesn't exist nor node_name=this doesn't exist
56{"execute": "job-dismiss", "arguments": {"id": "job0"}}
57{"return": {}}
58
59=== Zero size ===
60
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": {}}
65
66image: TEST_IMG
67file format: IMGFMT
68virtual size: 0 B (0 bytes)
69
70=== Maximum size ===
71
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": {}}
76
77image: TEST_IMG
78file format: IMGFMT
79virtual size: 4 PiB (4503599627369984 bytes)
80
81=== Invalid sizes ===
82
83{"execute": "blockdev-create", "arguments": {"job-id": "job0", "options": {"driver": "parallels", "file": "node0", "size": 1234}}}
84{"return": {}}
85Job failed: Image size must be a multiple of 512 bytes
86{"execute": "job-dismiss", "arguments": {"id": "job0"}}
87{"return": {}}
88
89{"execute": "blockdev-create", "arguments": {"job-id": "job0", "options": {"driver": "parallels", "file": "node0", "size": 18446744073709551104}}}
90{"return": {}}
91Job failed: Image size is too large for this cluster size
92{"execute": "job-dismiss", "arguments": {"id": "job0"}}
93{"return": {}}
94
95{"execute": "blockdev-create", "arguments": {"job-id": "job0", "options": {"driver": "parallels", "file": "node0", "size": 9223372036854775808}}}
96{"return": {}}
97Job failed: Image size is too large for this cluster size
98{"execute": "job-dismiss", "arguments": {"id": "job0"}}
99{"return": {}}
100
101{"execute": "blockdev-create", "arguments": {"job-id": "job0", "options": {"driver": "parallels", "file": "node0", "size": 9223372036854775296}}}
102{"return": {}}
103Job failed: Image size is too large for this cluster size
104{"execute": "job-dismiss", "arguments": {"id": "job0"}}
105{"return": {}}
106
107{"execute": "blockdev-create", "arguments": {"job-id": "job0", "options": {"driver": "parallels", "file": "node0", "size": 4503599627370497}}}
108{"return": {}}
109Job failed: Image size is too large for this cluster size
110{"execute": "job-dismiss", "arguments": {"id": "job0"}}
111{"return": {}}
112
113=== Invalid cluster size ===
114
115{"execute": "blockdev-create", "arguments": {"job-id": "job0", "options": {"cluster-size": 1234, "driver": "parallels", "file": "node0", "size": 67108864}}}
116{"return": {}}
117Job failed: Cluster size must be a multiple of 512 bytes
118{"execute": "job-dismiss", "arguments": {"id": "job0"}}
119{"return": {}}
120
121{"execute": "blockdev-create", "arguments": {"job-id": "job0", "options": {"cluster-size": 128, "driver": "parallels", "file": "node0", "size": 67108864}}}
122{"return": {}}
123Job failed: Cluster size must be a multiple of 512 bytes
124{"execute": "job-dismiss", "arguments": {"id": "job0"}}
125{"return": {}}
126
127{"execute": "blockdev-create", "arguments": {"job-id": "job0", "options": {"cluster-size": 4294967296, "driver": "parallels", "file": "node0", "size": 67108864}}}
128{"return": {}}
129Job failed: Cluster size is too large
130{"execute": "job-dismiss", "arguments": {"id": "job0"}}
131{"return": {}}
132
133{"execute": "blockdev-create", "arguments": {"job-id": "job0", "options": {"cluster-size": 9223372036854775808, "driver": "parallels", "file": "node0", "size": 67108864}}}
134{"return": {}}
135Job failed: Cluster size is too large
136{"execute": "job-dismiss", "arguments": {"id": "job0"}}
137{"return": {}}
138
139{"execute": "blockdev-create", "arguments": {"job-id": "job0", "options": {"cluster-size": 18446744073709551104, "driver": "parallels", "file": "node0", "size": 67108864}}}
140{"return": {}}
141Job failed: Cluster size is too large
142{"execute": "job-dismiss", "arguments": {"id": "job0"}}
143{"return": {}}
144
145{"execute": "blockdev-create", "arguments": {"job-id": "job0", "options": {"cluster-size": 0, "driver": "parallels", "file": "node0", "size": 67108864}}}
146{"return": {}}
147Job failed: Image size is too large for this cluster size
148{"execute": "job-dismiss", "arguments": {"id": "job0"}}
149{"return": {}}
150
151{"execute": "blockdev-create", "arguments": {"job-id": "job0", "options": {"cluster-size": 512, "driver": "parallels", "file": "node0", "size": 281474976710656}}}
152{"return": {}}
153Job failed: Image size is too large for this cluster size
154{"execute": "job-dismiss", "arguments": {"id": "job0"}}
155{"return": {}}
156
157