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'
54 === Mount over existing file ===
55 {'execute': 'block-export-add',
59 'node-name': 'node-format',
60 'mountpoint': 'TEST_DIR/t.IMGFMT'
66 {'execute': 'block-export-add',
70 'node-name': 'node-format',
71 'mountpoint': 'TEST_DIR/t.IMGFMT.fuse'
73 {"error": {"class": "GenericError", "desc": "There already is a FUSE export on 'TEST_DIR/t.IMGFMT.fuse'"}}
76 virtual size: 64 MiB (67108864 bytes)
77 {'execute': 'block-export-del',
82 {"timestamp": {"seconds": TIMESTAMP, "microseconds": TIMESTAMP}, "event": "BLOCK_EXPORT_DELETED", "data": {"id": "export-mp"}}
83 virtual size: 0 B (0 bytes)
85 === Writable export ===
86 {'execute': 'block-export-add',
90 'node-name': 'node-format',
91 'mountpoint': 'TEST_DIR/t.IMGFMT.fuse', 'writable': true
94 write failed: Permission denied
95 wrote 65536/65536 bytes at offset 1048576
96 64 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
97 wrote 65536/65536 bytes at offset 1048576
98 64 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
100 === Resizing exports ===
101 {'execute': 'block-export-del',
106 {"timestamp": {"seconds": TIMESTAMP, "microseconds": TIMESTAMP}, "event": "BLOCK_EXPORT_DELETED", "data": {"id": "export-mp"}}
107 {'execute': 'block-export-del',
112 {"timestamp": {"seconds": TIMESTAMP, "microseconds": TIMESTAMP}, "event": "BLOCK_EXPORT_DELETED", "data": {"id": "export-img"}}
113 {'execute': 'blockdev-del',
115 'node-name': 'node-format'
118 {'execute': 'block-export-add',
122 'node-name': 'node-protocol',
123 'mountpoint': 'TEST_DIR/t.IMGFMT.fuse', 'writable': true
127 --- Try growing non-growable export ---
128 (OK: Lengths of export and original are the same)
129 dd: error writing 'TEST_DIR/t.IMGFMT.fuse': Input/output error
133 --- Resize export ---
134 (OK: Lengths of export and original are the same)
135 OK: Post-truncate image size is as expected
136 OK: Disk usage grew with fallocate
138 --- Try growing growable export ---
139 {'execute': 'block-export-del',
144 {"timestamp": {"seconds": TIMESTAMP, "microseconds": TIMESTAMP}, "event": "BLOCK_EXPORT_DELETED", "data": {"id": "export-mp"}}
145 {'execute': 'block-export-add',
149 'node-name': 'node-protocol',
150 'mountpoint': 'TEST_DIR/t.IMGFMT.fuse', 'writable': true, 'growable': true
155 (OK: Lengths of export and original are the same)
156 OK: Post-grow image size is as expected
158 --- Shrink export ---
159 (OK: Lengths of export and original are the same)
160 OK: Post-truncate image size is as expected
165 {"timestamp": {"seconds": TIMESTAMP, "microseconds": TIMESTAMP}, "event": "SHUTDOWN", "data": {"guest": false, "reason": "host-qmp-quit"}}
166 {"timestamp": {"seconds": TIMESTAMP, "microseconds": TIMESTAMP}, "event": "BLOCK_EXPORT_DELETED", "data": {"id": "export-mp"}}
168 === Compare copy with original ===
169 Images are identical.