1 QA output created by 267
3 === No block devices at all ===
5 Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=134217728
7 QEMU X.Y.Z monitor - type 'help' for more information
9 Error: No block device can accept snapshots
11 No available block device supports snapshots
13 Error: No block device supports snapshots
17 === -drive if=none ===
19 Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=134217728
20 Testing: -drive driver=file,file=TEST_DIR/t.IMGFMT,if=none
21 QEMU X.Y.Z monitor - type 'help' for more information
23 Error: Device 'none0' is writable but does not support snapshots
25 No available block device supports snapshots
27 Error: Device 'none0' is writable but does not support snapshots
30 Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=134217728
31 Testing: -drive driver=IMGFMT,file=TEST_DIR/t.IMGFMT,if=none
32 QEMU X.Y.Z monitor - type 'help' for more information
35 List of snapshots present on all disks:
36 ID TAG VM SIZE DATE VM CLOCK
37 -- snap0 SIZE yyyy-mm-dd hh:mm:ss 00:00:00.000
41 Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=134217728
42 Testing: -drive driver=IMGFMT,file=TEST_DIR/t.IMGFMT,if=none -device virtio-blk,drive=none0
43 QEMU X.Y.Z monitor - type 'help' for more information
46 List of snapshots present on all disks:
47 ID TAG VM SIZE DATE VM CLOCK
48 -- snap0 SIZE yyyy-mm-dd hh:mm:ss 00:00:00.000
53 === -drive if=virtio ===
55 Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=134217728
56 Testing: -drive driver=file,file=TEST_DIR/t.IMGFMT,if=virtio
57 QEMU X.Y.Z monitor - type 'help' for more information
59 Error: Device 'virtio0' is writable but does not support snapshots
61 No available block device supports snapshots
63 Error: Device 'virtio0' is writable but does not support snapshots
66 Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=134217728
67 Testing: -drive driver=IMGFMT,file=TEST_DIR/t.IMGFMT,if=virtio
68 QEMU X.Y.Z monitor - type 'help' for more information
71 List of snapshots present on all disks:
72 ID TAG VM SIZE DATE VM CLOCK
73 -- snap0 SIZE yyyy-mm-dd hh:mm:ss 00:00:00.000
78 === Simple -blockdev ===
80 Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=134217728
81 Testing: -blockdev driver=file,filename=TEST_DIR/t.IMGFMT,node-name=file
82 QEMU X.Y.Z monitor - type 'help' for more information
84 Error: Device '' is writable but does not support snapshots
86 No available block device supports snapshots
88 Error: Device '' is writable but does not support snapshots
91 Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=134217728
92 Testing: -blockdev driver=file,filename=TEST_DIR/t.IMGFMT,node-name=file -blockdev driver=IMGFMT,file=file,node-name=fmt
93 QEMU X.Y.Z monitor - type 'help' for more information
96 List of snapshots present on all disks:
97 ID TAG VM SIZE DATE VM CLOCK
98 -- snap0 SIZE yyyy-mm-dd hh:mm:ss 00:00:00.000
102 Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=134217728
103 Testing: -blockdev driver=file,filename=TEST_DIR/t.IMGFMT,node-name=file -blockdev driver=raw,file=file,node-name=raw -blockdev driver=IMGFMT,file=raw,node-name=fmt
104 QEMU X.Y.Z monitor - type 'help' for more information
106 (qemu) info snapshots
107 List of snapshots present on all disks:
108 ID TAG VM SIZE DATE VM CLOCK
109 -- snap0 SIZE yyyy-mm-dd hh:mm:ss 00:00:00.000
114 === -blockdev with a filter on top ===
116 Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=134217728
117 Testing: -blockdev driver=file,filename=TEST_DIR/t.IMGFMT,node-name=file -blockdev driver=IMGFMT,file=file,node-name=fmt -blockdev driver=copy-on-read,file=fmt,node-name=filter
118 QEMU X.Y.Z monitor - type 'help' for more information
120 (qemu) info snapshots
121 List of snapshots present on all disks:
122 ID TAG VM SIZE DATE VM CLOCK
123 -- snap0 SIZE yyyy-mm-dd hh:mm:ss 00:00:00.000
128 === -blockdev with a backing file ===
130 Formatting 'TEST_DIR/t.IMGFMT.base', fmt=IMGFMT size=134217728
131 Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=134217728 backing_file=TEST_DIR/t.IMGFMT.base
132 Testing: -blockdev driver=file,filename=TEST_DIR/t.IMGFMT.base,node-name=backing-file -blockdev driver=file,filename=TEST_DIR/t.IMGFMT,node-name=file -blockdev driver=IMGFMT,file=file,backing=backing-file,node-name=fmt
133 QEMU X.Y.Z monitor - type 'help' for more information
135 (qemu) info snapshots
136 List of snapshots present on all disks:
137 ID TAG VM SIZE DATE VM CLOCK
138 -- snap0 SIZE yyyy-mm-dd hh:mm:ss 00:00:00.000
142 Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=134217728 backing_file=TEST_DIR/t.IMGFMT.base
143 Testing: -blockdev driver=file,filename=TEST_DIR/t.IMGFMT.base,node-name=backing-file -blockdev driver=IMGFMT,file=backing-file,node-name=backing-fmt -blockdev driver=file,filename=TEST_DIR/t.IMGFMT,node-name=file -blockdev driver=IMGFMT,file=file,backing=backing-fmt,node-name=fmt
144 QEMU X.Y.Z monitor - type 'help' for more information
146 (qemu) info snapshots
147 List of snapshots present on all disks:
148 ID TAG VM SIZE DATE VM CLOCK
149 -- snap0 SIZE yyyy-mm-dd hh:mm:ss 00:00:00.000
153 Internal snapshots on overlay:
155 ID TAG VM SIZE DATE VM CLOCK
156 1 snap0 SIZE yyyy-mm-dd hh:mm:ss 00:00:00.000
157 Internal snapshots on backing file:
159 === -blockdev with NBD server on the backing file ===
161 Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=134217728 backing_file=TEST_DIR/t.IMGFMT.base
162 Testing: -blockdev driver=file,filename=TEST_DIR/t.IMGFMT.base,node-name=backing-file -blockdev driver=IMGFMT,file=backing-file,node-name=backing-fmt -blockdev driver=file,filename=TEST_DIR/t.IMGFMT,node-name=file -blockdev driver=IMGFMT,file=file,backing=backing-fmt,node-name=fmt
163 QEMU X.Y.Z monitor - type 'help' for more information
164 (qemu) nbd_server_start unix:SOCK_DIR/nbd
165 (qemu) nbd_server_add -w backing-fmt
167 (qemu) info snapshots
168 List of snapshots present on all disks:
169 ID TAG VM SIZE DATE VM CLOCK
170 -- snap0 SIZE yyyy-mm-dd hh:mm:ss 00:00:00.000
174 Internal snapshots on overlay:
176 ID TAG VM SIZE DATE VM CLOCK
177 1 snap0 SIZE yyyy-mm-dd hh:mm:ss 00:00:00.000
178 Internal snapshots on backing file:
180 ID TAG VM SIZE DATE VM CLOCK
181 1 snap0 SIZE yyyy-mm-dd hh:mm:ss 00:00:00.000