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"}}
6 {"execute": "blockdev-add", "arguments": {"driver": "file", "filename": "TEST_DIR/PID-t.vpc", "node-name": "protocol-node"}}
9 === Successful image creation (defaults) ===
11 {"execute": "blockdev-create", "arguments": {"job-id": "job0", "options": {"driver": "vpc", "file": "protocol-node", "size": 67125248}}}
13 {"execute": "job-dismiss", "arguments": {"id": "job0"}}
18 virtual size: 64 MiB (67125248 bytes)
21 --- Creating empty file ---
22 {"execute": "blockdev-create", "arguments": {"job-id": "job0", "options": {"driver": "file", "filename": "TEST_DIR/PID-t.vpc", "size": 0}}}
24 {"execute": "job-dismiss", "arguments": {"id": "job0"}}
26 {"execute": "blockdev-add", "arguments": {"driver": "file", "filename": "TEST_DIR/PID-t.vpc", "node-name": "protocol-node"}}
29 === Successful image creation (explicit defaults) ===
31 {"execute": "blockdev-create", "arguments": {"job-id": "job0", "options": {"driver": "vpc", "file": "protocol-node", "force-size": false, "size": 134250496, "subformat": "dynamic"}}}
33 {"execute": "job-dismiss", "arguments": {"id": "job0"}}
38 virtual size: 128 MiB (134250496 bytes)
41 --- Creating empty file ---
42 {"execute": "blockdev-create", "arguments": {"job-id": "job0", "options": {"driver": "file", "filename": "TEST_DIR/PID-t.vpc", "size": 0}}}
44 {"execute": "job-dismiss", "arguments": {"id": "job0"}}
46 {"execute": "blockdev-add", "arguments": {"driver": "file", "filename": "TEST_DIR/PID-t.vpc", "node-name": "protocol-node"}}
49 === Successful image creation (non-default options) ===
51 {"execute": "blockdev-create", "arguments": {"job-id": "job0", "options": {"driver": "vpc", "file": "protocol-node", "force-size": true, "size": 1048576, "subformat": "fixed"}}}
53 {"execute": "job-dismiss", "arguments": {"id": "job0"}}
58 virtual size: 1 MiB (1048576 bytes)
60 --- Creating empty file ---
61 {"execute": "blockdev-create", "arguments": {"job-id": "job0", "options": {"driver": "file", "filename": "TEST_DIR/PID-t.vpc", "size": 0}}}
63 {"execute": "job-dismiss", "arguments": {"id": "job0"}}
65 {"execute": "blockdev-add", "arguments": {"driver": "file", "filename": "TEST_DIR/PID-t.vpc", "node-name": "protocol-node"}}
68 === Size not representable in CHS ===
70 {"execute": "blockdev-create", "arguments": {"job-id": "job0", "options": {"driver": "vpc", "file": "protocol-node", "force-size": false, "size": 1048576}}}
72 Job failed: The requested image size cannot be represented in CHS geometry
73 {"execute": "job-dismiss", "arguments": {"id": "job0"}}
76 qemu-img: Could not open 'TEST_IMG': File too small for a VHD header
78 --- Creating empty file ---
79 {"execute": "blockdev-create", "arguments": {"job-id": "job0", "options": {"driver": "file", "filename": "TEST_DIR/PID-t.vpc", "size": 0}}}
81 {"execute": "job-dismiss", "arguments": {"id": "job0"}}
83 {"execute": "blockdev-add", "arguments": {"driver": "file", "filename": "TEST_DIR/PID-t.vpc", "node-name": "protocol-node"}}
88 {"execute": "blockdev-create", "arguments": {"job-id": "job0", "options": {"driver": "vpc", "file": "protocol-node", "size": 0}}}
90 {"execute": "job-dismiss", "arguments": {"id": "job0"}}
95 virtual size: 0 B (0 bytes)
98 --- Creating empty file ---
99 {"execute": "blockdev-create", "arguments": {"job-id": "job0", "options": {"driver": "file", "filename": "TEST_DIR/PID-t.vpc", "size": 0}}}
101 {"execute": "job-dismiss", "arguments": {"id": "job0"}}
103 {"execute": "blockdev-add", "arguments": {"driver": "file", "filename": "TEST_DIR/PID-t.vpc", "node-name": "protocol-node"}}
106 === Maximum CHS size===
108 {"execute": "blockdev-create", "arguments": {"job-id": "job0", "options": {"driver": "vpc", "file": "protocol-node", "size": 136899993600}}}
110 {"execute": "job-dismiss", "arguments": {"id": "job0"}}
115 virtual size: 127 GiB (136899993600 bytes)
116 cluster_size: 2097152
118 --- Creating empty file ---
119 {"execute": "blockdev-create", "arguments": {"job-id": "job0", "options": {"driver": "file", "filename": "TEST_DIR/PID-t.vpc", "size": 0}}}
121 {"execute": "job-dismiss", "arguments": {"id": "job0"}}
123 {"execute": "blockdev-add", "arguments": {"driver": "file", "filename": "TEST_DIR/PID-t.vpc", "node-name": "protocol-node"}}
126 === Actual maximum size===
128 {"execute": "blockdev-create", "arguments": {"job-id": "job0", "options": {"driver": "vpc", "file": "protocol-node", "force-size": true, "size": 2190433320960}}}
130 {"execute": "job-dismiss", "arguments": {"id": "job0"}}
135 virtual size: 1.99 TiB (2190433320960 bytes)
136 cluster_size: 2097152