1 --- Creating empty file ---
2 {"execute": "blockdev-create", "arguments": {"job-id": "job0", "options": {"driver": "file", "filename": "TEST_DIR/PID-t.vpc", "size": 0}}}
4 {"execute": "job-dismiss", "arguments": {"id": "job0"}}
7 {"execute": "blockdev-add", "arguments": {"driver": "file", "filename": "TEST_DIR/PID-t.vpc", "node-name": "protocol-node"}}
10 === Successful image creation (defaults) ===
12 {"execute": "blockdev-create", "arguments": {"job-id": "job0", "options": {"driver": "vpc", "file": "protocol-node", "size": 67125248}}}
14 {"execute": "job-dismiss", "arguments": {"id": "job0"}}
20 virtual size: 64 MiB (67125248 bytes)
23 --- Creating empty file ---
24 {"execute": "blockdev-create", "arguments": {"job-id": "job0", "options": {"driver": "file", "filename": "TEST_DIR/PID-t.vpc", "size": 0}}}
26 {"execute": "job-dismiss", "arguments": {"id": "job0"}}
29 {"execute": "blockdev-add", "arguments": {"driver": "file", "filename": "TEST_DIR/PID-t.vpc", "node-name": "protocol-node"}}
32 === Successful image creation (explicit defaults) ===
34 {"execute": "blockdev-create", "arguments": {"job-id": "job0", "options": {"driver": "vpc", "file": "protocol-node", "force-size": false, "size": 134250496, "subformat": "dynamic"}}}
36 {"execute": "job-dismiss", "arguments": {"id": "job0"}}
42 virtual size: 128 MiB (134250496 bytes)
45 --- Creating empty file ---
46 {"execute": "blockdev-create", "arguments": {"job-id": "job0", "options": {"driver": "file", "filename": "TEST_DIR/PID-t.vpc", "size": 0}}}
48 {"execute": "job-dismiss", "arguments": {"id": "job0"}}
51 {"execute": "blockdev-add", "arguments": {"driver": "file", "filename": "TEST_DIR/PID-t.vpc", "node-name": "protocol-node"}}
54 === Successful image creation (non-default options) ===
56 {"execute": "blockdev-create", "arguments": {"job-id": "job0", "options": {"driver": "vpc", "file": "protocol-node", "force-size": true, "size": 1048576, "subformat": "fixed"}}}
58 {"execute": "job-dismiss", "arguments": {"id": "job0"}}
64 virtual size: 1 MiB (1048576 bytes)
66 --- Creating empty file ---
67 {"execute": "blockdev-create", "arguments": {"job-id": "job0", "options": {"driver": "file", "filename": "TEST_DIR/PID-t.vpc", "size": 0}}}
69 {"execute": "job-dismiss", "arguments": {"id": "job0"}}
72 {"execute": "blockdev-add", "arguments": {"driver": "file", "filename": "TEST_DIR/PID-t.vpc", "node-name": "protocol-node"}}
75 === Size not representable in CHS ===
77 {"execute": "blockdev-create", "arguments": {"job-id": "job0", "options": {"driver": "vpc", "file": "protocol-node", "force-size": false, "size": 1048576}}}
79 Job failed: The requested image size cannot be represented in CHS geometry
80 {"execute": "job-dismiss", "arguments": {"id": "job0"}}
84 qemu-img: Could not open 'TEST_IMG': File too small for a VHD header
86 --- Creating empty file ---
87 {"execute": "blockdev-create", "arguments": {"job-id": "job0", "options": {"driver": "file", "filename": "TEST_DIR/PID-t.vpc", "size": 0}}}
89 {"execute": "job-dismiss", "arguments": {"id": "job0"}}
92 {"execute": "blockdev-add", "arguments": {"driver": "file", "filename": "TEST_DIR/PID-t.vpc", "node-name": "protocol-node"}}
97 {"execute": "blockdev-create", "arguments": {"job-id": "job0", "options": {"driver": "vpc", "file": "protocol-node", "size": 0}}}
99 {"execute": "job-dismiss", "arguments": {"id": "job0"}}
105 virtual size: 0 B (0 bytes)
106 cluster_size: 2097152
108 --- Creating empty file ---
109 {"execute": "blockdev-create", "arguments": {"job-id": "job0", "options": {"driver": "file", "filename": "TEST_DIR/PID-t.vpc", "size": 0}}}
111 {"execute": "job-dismiss", "arguments": {"id": "job0"}}
114 {"execute": "blockdev-add", "arguments": {"driver": "file", "filename": "TEST_DIR/PID-t.vpc", "node-name": "protocol-node"}}
117 === Maximum CHS size===
119 {"execute": "blockdev-create", "arguments": {"job-id": "job0", "options": {"driver": "vpc", "file": "protocol-node", "size": 136899993600}}}
121 {"execute": "job-dismiss", "arguments": {"id": "job0"}}
127 virtual size: 127 GiB (136899993600 bytes)
128 cluster_size: 2097152
130 --- Creating empty file ---
131 {"execute": "blockdev-create", "arguments": {"job-id": "job0", "options": {"driver": "file", "filename": "TEST_DIR/PID-t.vpc", "size": 0}}}
133 {"execute": "job-dismiss", "arguments": {"id": "job0"}}
136 {"execute": "blockdev-add", "arguments": {"driver": "file", "filename": "TEST_DIR/PID-t.vpc", "node-name": "protocol-node"}}
139 === Actual maximum size===
141 {"execute": "blockdev-create", "arguments": {"job-id": "job0", "options": {"driver": "vpc", "file": "protocol-node", "force-size": true, "size": 2190433320960}}}
143 {"execute": "job-dismiss", "arguments": {"id": "job0"}}
149 virtual size: 1.99 TiB (2190433320960 bytes)
150 cluster_size: 2097152