1 QA output created by 308
3 Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864
4 wrote 67108864/67108864 bytes at offset 0
5 64 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
6 {'execute': 'qmp_capabilities'}
8 {'execute': 'blockdev-add',
11 'node-name': 'node-protocol',
12 'filename': 'TEST_DIR/t.IMGFMT'
15 {'execute': 'blockdev-add',
18 'node-name': 'node-format',
19 'file': 'node-protocol'
23 === Mountpoint not present ===
24 {'execute': 'block-export-add',
28 'node-name': 'node-format',
29 'mountpoint': 'TEST_DIR/t.IMGFMT.fuse'
31 {"error": {"class": "GenericError", "desc": "Failed to stat 'TEST_DIR/t.IMGFMT.fuse': No such file or directory"}}
33 === Mountpoint is a directory ===
34 {'execute': 'block-export-add',
38 'node-name': 'node-format',
39 'mountpoint': 'TEST_DIR/t.IMGFMT.fuse'
41 {"error": {"class": "GenericError", "desc": "'TEST_DIR/t.IMGFMT.fuse' is not a regular file"}}
43 === Mountpoint is a regular file ===
44 {'execute': 'block-export-add',
48 'node-name': 'node-format',
49 'mountpoint': 'TEST_DIR/t.IMGFMT.fuse'
53 Permissions pre-chmod: 400
54 chmod: changing permissions of 'TEST_DIR/t.IMGFMT.fuse': Read-only file system
55 Permissions post-+w: 400
56 Permissions post-+x: 500
58 === Mount over existing file ===
59 {'execute': 'block-export-add',
63 'node-name': 'node-format',
64 'mountpoint': 'TEST_DIR/t.IMGFMT'
70 {'execute': 'block-export-add',
74 'node-name': 'node-format',
75 'mountpoint': 'TEST_DIR/t.IMGFMT.fuse'
77 {"error": {"class": "GenericError", "desc": "There already is a FUSE export on 'TEST_DIR/t.IMGFMT.fuse'"}}
80 virtual size: 64 MiB (67108864 bytes)
81 {'execute': 'block-export-del',
86 {"timestamp": {"seconds": TIMESTAMP, "microseconds": TIMESTAMP}, "event": "BLOCK_EXPORT_DELETED", "data": {"id": "export-mp"}}
87 virtual size: 0 B (0 bytes)
89 === Writable export ===
90 {'execute': 'block-export-add',
94 'node-name': 'node-format',
95 'mountpoint': 'TEST_DIR/t.IMGFMT.fuse', 'writable': true
98 Writing to read-only export failed: OK
99 wrote 65536/65536 bytes at offset 1048576
100 64 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
101 wrote 65536/65536 bytes at offset 1048576
102 64 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
104 === Resizing exports ===
105 {'execute': 'block-export-del',
110 {"timestamp": {"seconds": TIMESTAMP, "microseconds": TIMESTAMP}, "event": "BLOCK_EXPORT_DELETED", "data": {"id": "export-mp"}}
111 {'execute': 'block-export-del',
116 {"timestamp": {"seconds": TIMESTAMP, "microseconds": TIMESTAMP}, "event": "BLOCK_EXPORT_DELETED", "data": {"id": "export-img"}}
117 {'execute': 'blockdev-del',
119 'node-name': 'node-format'
122 {'execute': 'block-export-add',
126 'node-name': 'node-protocol',
127 'mountpoint': 'TEST_DIR/t.IMGFMT.fuse', 'writable': true
131 --- Try growing non-growable export ---
132 (OK: Lengths of export and original are the same)
133 dd: error writing 'TEST_DIR/t.IMGFMT.fuse': Input/output error
137 --- Resize export ---
138 (OK: Lengths of export and original are the same)
139 OK: Post-truncate image size is as expected
140 OK: Disk usage grew with fallocate
142 --- Try growing growable export ---
143 {'execute': 'block-export-del',
148 {"timestamp": {"seconds": TIMESTAMP, "microseconds": TIMESTAMP}, "event": "BLOCK_EXPORT_DELETED", "data": {"id": "export-mp"}}
149 {'execute': 'block-export-add',
153 'node-name': 'node-protocol',
154 'mountpoint': 'TEST_DIR/t.IMGFMT.fuse', 'writable': true, 'growable': true
159 (OK: Lengths of export and original are the same)
160 OK: Post-grow image size is as expected
162 --- Shrink export ---
163 (OK: Lengths of export and original are the same)
164 OK: Post-truncate image size is as expected
168 {"timestamp": {"seconds": TIMESTAMP, "microseconds": TIMESTAMP}, "event": "SHUTDOWN", "data": {"guest": false, "reason": "host-qmp-quit"}}
169 {"timestamp": {"seconds": TIMESTAMP, "microseconds": TIMESTAMP}, "event": "BLOCK_EXPORT_DELETED", "data": {"id": "export-mp"}}
172 === Compare copy with original ===
173 Images are identical.
175 === Writing zeroes while unmapping ===
176 Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864
177 wrote 67108864/67108864 bytes at offset 0
178 64 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
179 {'execute': 'qmp_capabilities'}
181 {'execute': 'blockdev-add',
184 'node-name': 'node-format',
187 'filename': 'TEST_DIR/t.IMGFMT'
191 {'execute': 'block-export-add',
195 'node-name': 'node-format',
196 'mountpoint': 'TEST_DIR/t.IMGFMT.fuse', 'writable': true
199 wrote 67108864/67108864 bytes at offset 0
200 64 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
201 read 67108864/67108864 bytes at offset 0
202 64 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
204 {"timestamp": {"seconds": TIMESTAMP, "microseconds": TIMESTAMP}, "event": "SHUTDOWN", "data": {"guest": false, "reason": "host-qmp-quit"}}
205 {"timestamp": {"seconds": TIMESTAMP, "microseconds": TIMESTAMP}, "event": "BLOCK_EXPORT_DELETED", "data": {"id": "export"}}
207 read 67108864/67108864 bytes at offset 0
208 64 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)