1 === Successful image creation (defaults) ===
3 {"execute": "blockdev-create", "arguments": {"job-id": "job0", "options": {"driver": "file", "filename": "TEST_DIR/PID-t.parallels", "size": 0}}}
5 {"execute": "job-dismiss", "arguments": {"id": "job0"}}
8 {"execute": "blockdev-add", "arguments": {"driver": "file", "filename": "TEST_DIR/PID-t.parallels", "node-name": "imgfile"}}
10 {"execute": "blockdev-create", "arguments": {"job-id": "job0", "options": {"driver": "parallels", "file": "imgfile", "size": 134217728}}}
12 {"execute": "job-dismiss", "arguments": {"id": "job0"}}
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}}}
23 {"execute": "job-dismiss", "arguments": {"id": "job0"}}
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}}}
28 {"execute": "job-dismiss", "arguments": {"id": "job0"}}
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}}}
39 {"execute": "job-dismiss", "arguments": {"id": "job0"}}
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}}}
44 {"execute": "job-dismiss", "arguments": {"id": "job0"}}
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}}}
55 Job failed: Cannot find device=this doesn't exist nor node_name=this doesn't exist
56 {"execute": "job-dismiss", "arguments": {"id": "job0"}}
61 {"execute": "blockdev-create", "arguments": {"job-id": "job0", "options": {"driver": "parallels", "file": "node0", "size": 0}}}
63 {"execute": "job-dismiss", "arguments": {"id": "job0"}}
68 virtual size: 0 B (0 bytes)
72 {"execute": "blockdev-create", "arguments": {"job-id": "job0", "options": {"driver": "parallels", "file": "node0", "size": 4503599627369984}}}
74 {"execute": "job-dismiss", "arguments": {"id": "job0"}}
79 virtual size: 4 PiB (4503599627369984 bytes)
83 {"execute": "blockdev-create", "arguments": {"job-id": "job0", "options": {"driver": "parallels", "file": "node0", "size": 1234}}}
85 Job failed: Image size must be a multiple of 512 bytes
86 {"execute": "job-dismiss", "arguments": {"id": "job0"}}
89 {"execute": "blockdev-create", "arguments": {"job-id": "job0", "options": {"driver": "parallels", "file": "node0", "size": 18446744073709551104}}}
91 Job failed: Image size is too large for this cluster size
92 {"execute": "job-dismiss", "arguments": {"id": "job0"}}
95 {"execute": "blockdev-create", "arguments": {"job-id": "job0", "options": {"driver": "parallels", "file": "node0", "size": 9223372036854775808}}}
97 Job failed: Image size is too large for this cluster size
98 {"execute": "job-dismiss", "arguments": {"id": "job0"}}
101 {"execute": "blockdev-create", "arguments": {"job-id": "job0", "options": {"driver": "parallels", "file": "node0", "size": 9223372036854775296}}}
103 Job failed: Image size is too large for this cluster size
104 {"execute": "job-dismiss", "arguments": {"id": "job0"}}
107 {"execute": "blockdev-create", "arguments": {"job-id": "job0", "options": {"driver": "parallels", "file": "node0", "size": 4503599627370497}}}
109 Job failed: Image size is too large for this cluster size
110 {"execute": "job-dismiss", "arguments": {"id": "job0"}}
113 === Invalid cluster size ===
115 {"execute": "blockdev-create", "arguments": {"job-id": "job0", "options": {"cluster-size": 1234, "driver": "parallels", "file": "node0", "size": 67108864}}}
117 Job failed: Cluster size must be a multiple of 512 bytes
118 {"execute": "job-dismiss", "arguments": {"id": "job0"}}
121 {"execute": "blockdev-create", "arguments": {"job-id": "job0", "options": {"cluster-size": 128, "driver": "parallels", "file": "node0", "size": 67108864}}}
123 Job failed: Cluster size must be a multiple of 512 bytes
124 {"execute": "job-dismiss", "arguments": {"id": "job0"}}
127 {"execute": "blockdev-create", "arguments": {"job-id": "job0", "options": {"cluster-size": 4294967296, "driver": "parallels", "file": "node0", "size": 67108864}}}
129 Job failed: Cluster size is too large
130 {"execute": "job-dismiss", "arguments": {"id": "job0"}}
133 {"execute": "blockdev-create", "arguments": {"job-id": "job0", "options": {"cluster-size": 9223372036854775808, "driver": "parallels", "file": "node0", "size": 67108864}}}
135 Job failed: Cluster size is too large
136 {"execute": "job-dismiss", "arguments": {"id": "job0"}}
139 {"execute": "blockdev-create", "arguments": {"job-id": "job0", "options": {"cluster-size": 18446744073709551104, "driver": "parallels", "file": "node0", "size": 67108864}}}
141 Job failed: Cluster size is too large
142 {"execute": "job-dismiss", "arguments": {"id": "job0"}}
145 {"execute": "blockdev-create", "arguments": {"job-id": "job0", "options": {"cluster-size": 0, "driver": "parallels", "file": "node0", "size": 67108864}}}
147 Job failed: Image size is too large for this cluster size
148 {"execute": "job-dismiss", "arguments": {"id": "job0"}}
151 {"execute": "blockdev-create", "arguments": {"job-id": "job0", "options": {"cluster-size": 512, "driver": "parallels", "file": "node0", "size": 281474976710656}}}
153 Job failed: Image size is too large for this cluster size
154 {"execute": "job-dismiss", "arguments": {"id": "job0"}}