]>
Commit | Line | Data |
---|---|---|
47e5df21 KW |
1 | QA output created by 051 |
2 | Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=134217728 | |
4db9c980 | 3 | Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=134217728 backing_file='TEST_DIR/t.IMGFMT.base' |
47e5df21 KW |
4 | |
5 | === Unknown option === | |
6 | ||
7 | Testing: -drive file=TEST_DIR/t.qcow2,format=qcow2,unknown_opt= | |
2c78857b | 8 | QEMU_PROG: -drive file=TEST_DIR/t.qcow2,format=qcow2,unknown_opt=: could not open disk image TEST_DIR/t.qcow2: Block format 'qcow2' used by device 'ide0-hd0' doesn't support the option 'unknown_opt' |
47e5df21 KW |
9 | |
10 | Testing: -drive file=TEST_DIR/t.qcow2,format=qcow2,unknown_opt=on | |
2c78857b | 11 | QEMU_PROG: -drive file=TEST_DIR/t.qcow2,format=qcow2,unknown_opt=on: could not open disk image TEST_DIR/t.qcow2: Block format 'qcow2' used by device 'ide0-hd0' doesn't support the option 'unknown_opt' |
47e5df21 KW |
12 | |
13 | Testing: -drive file=TEST_DIR/t.qcow2,format=qcow2,unknown_opt=1234 | |
2c78857b | 14 | QEMU_PROG: -drive file=TEST_DIR/t.qcow2,format=qcow2,unknown_opt=1234: could not open disk image TEST_DIR/t.qcow2: Block format 'qcow2' used by device 'ide0-hd0' doesn't support the option 'unknown_opt' |
47e5df21 KW |
15 | |
16 | Testing: -drive file=TEST_DIR/t.qcow2,format=qcow2,unknown_opt=foo | |
2c78857b | 17 | QEMU_PROG: -drive file=TEST_DIR/t.qcow2,format=qcow2,unknown_opt=foo: could not open disk image TEST_DIR/t.qcow2: Block format 'qcow2' used by device 'ide0-hd0' doesn't support the option 'unknown_opt' |
47e5df21 KW |
18 | |
19 | ||
06d22aa3 KW |
20 | === Invalid format === |
21 | ||
22 | Testing: -drive file=TEST_DIR/t.qcow2,format=foo | |
23 | QEMU_PROG: -drive file=TEST_DIR/t.qcow2,format=foo: 'foo' invalid format | |
24 | ||
25 | Testing: -drive file=TEST_DIR/t.qcow2,driver=foo | |
26 | QEMU_PROG: -drive file=TEST_DIR/t.qcow2,driver=foo: could not open disk image TEST_DIR/t.qcow2: Invalid driver: 'foo' | |
27 | ||
28 | ||
4db9c980 FZ |
29 | === Overriding backing file === |
30 | ||
31 | Testing: -drive file=TEST_DIR/t.qcow2,driver=qcow2,backing.file.filename=TEST_DIR/t.qcow2.orig -nodefaults | |
32 | QEMU X.Y.Z monitor - type 'help' for more information | |
33 | (qemu) i\e[K\e[Din\e[K\e[D\e[Dinf\e[K\e[D\e[D\e[Dinfo\e[K\e[D\e[D\e[D\e[Dinfo \e[K\e[D\e[D\e[D\e[D\e[Dinfo b\e[K\e[D\e[D\e[D\e[D\e[D\e[Dinfo bl\e[K\e[D\e[D\e[D\e[D\e[D\e[D\e[Dinfo blo\e[K\e[D\e[D\e[D\e[D\e[D\e[D\e[D\e[Dinfo bloc\e[K\e[D\e[D\e[D\e[D\e[D\e[D\e[D\e[D\e[Dinfo block\e[K | |
34 | ide0-hd0: TEST_DIR/t.qcow2 (qcow2) | |
35 | Backing file: TEST_DIR/t.qcow2.orig (chain depth: 1) | |
a7cf03d4 | 36 | (qemu) q\e[K\e[Dqu\e[K\e[D\e[Dqui\e[K\e[D\e[D\e[Dquit\e[K |
4db9c980 FZ |
37 | |
38 | ||
47e5df21 KW |
39 | === Enable and disable lazy refcounting on the command line, plus some invalid values === |
40 | ||
64aa99d3 | 41 | Testing: -drive file=TEST_DIR/t.qcow2,format=qcow2,lazy-refcounts=on |
9580498b | 42 | QEMU X.Y.Z monitor - type 'help' for more information\r |
7a370406 | 43 | (qemu) q\e[K\e[Dqu\e[K\e[D\e[Dqui\e[K\e[D\e[D\e[Dquit\e[K\r |
47e5df21 | 44 | |
64aa99d3 | 45 | Testing: -drive file=TEST_DIR/t.qcow2,format=qcow2,lazy-refcounts=off |
9580498b | 46 | QEMU X.Y.Z monitor - type 'help' for more information\r |
7a370406 | 47 | (qemu) q\e[K\e[Dqu\e[K\e[D\e[Dqui\e[K\e[D\e[D\e[Dquit\e[K\r |
47e5df21 | 48 | |
64aa99d3 | 49 | Testing: -drive file=TEST_DIR/t.qcow2,format=qcow2,lazy-refcounts= |
2c78857b | 50 | QEMU_PROG: -drive file=TEST_DIR/t.qcow2,format=qcow2,lazy-refcounts=: could not open disk image TEST_DIR/t.qcow2: Parameter 'lazy-refcounts' expects 'on' or 'off' |
47e5df21 | 51 | |
64aa99d3 | 52 | Testing: -drive file=TEST_DIR/t.qcow2,format=qcow2,lazy-refcounts=42 |
2c78857b | 53 | QEMU_PROG: -drive file=TEST_DIR/t.qcow2,format=qcow2,lazy-refcounts=42: could not open disk image TEST_DIR/t.qcow2: Parameter 'lazy-refcounts' expects 'on' or 'off' |
47e5df21 | 54 | |
64aa99d3 | 55 | Testing: -drive file=TEST_DIR/t.qcow2,format=qcow2,lazy-refcounts=foo |
2c78857b | 56 | QEMU_PROG: -drive file=TEST_DIR/t.qcow2,format=qcow2,lazy-refcounts=foo: could not open disk image TEST_DIR/t.qcow2: Parameter 'lazy-refcounts' expects 'on' or 'off' |
47e5df21 KW |
57 | |
58 | ||
59 | === With version 2 images enabling lazy refcounts must fail === | |
60 | ||
61 | Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=134217728 | |
64aa99d3 | 62 | Testing: -drive file=TEST_DIR/t.qcow2,format=qcow2,lazy-refcounts=on |
2c78857b | 63 | QEMU_PROG: -drive file=TEST_DIR/t.qcow2,format=qcow2,lazy-refcounts=on: could not open disk image TEST_DIR/t.qcow2: Lazy refcounts require a qcow2 image with at least qemu 1.1 compatibility level |
47e5df21 | 64 | |
64aa99d3 | 65 | Testing: -drive file=TEST_DIR/t.qcow2,format=qcow2,lazy-refcounts=off |
9580498b | 66 | QEMU X.Y.Z monitor - type 'help' for more information\r |
7a370406 | 67 | (qemu) q\e[K\e[Dqu\e[K\e[D\e[Dqui\e[K\e[D\e[D\e[Dquit\e[K\r |
47e5df21 KW |
68 | |
69 | ||
70 | === No medium === | |
71 | ||
72 | Testing: -drive if=floppy | |
9580498b | 73 | QEMU X.Y.Z monitor - type 'help' for more information\r |
7a370406 | 74 | (qemu) q\e[K\e[Dqu\e[K\e[D\e[Dqui\e[K\e[D\e[D\e[Dquit\e[K\r |
47e5df21 KW |
75 | |
76 | Testing: -drive if=ide,media=cdrom | |
9580498b | 77 | QEMU X.Y.Z monitor - type 'help' for more information\r |
7a370406 | 78 | (qemu) q\e[K\e[Dqu\e[K\e[D\e[Dqui\e[K\e[D\e[D\e[Dquit\e[K\r |
47e5df21 KW |
79 | |
80 | Testing: -drive if=scsi,media=cdrom | |
9580498b | 81 | QEMU X.Y.Z monitor - type 'help' for more information\r |
7a370406 | 82 | (qemu) q\e[K\e[Dqu\e[K\e[D\e[Dqui\e[K\e[D\e[D\e[Dquit\e[K\r |
47e5df21 KW |
83 | |
84 | Testing: -drive if=ide | |
9580498b | 85 | QEMU X.Y.Z monitor - type 'help' for more information\r |
7a370406 KW |
86 | (qemu) QEMU_PROG: Device needs media, but drive is empty |
87 | QEMU_PROG: Device initialization failed. | |
c09b437b | 88 | QEMU_PROG: Initialization of device ide-hd failed |
47e5df21 KW |
89 | |
90 | Testing: -drive if=virtio | |
9580498b | 91 | QEMU X.Y.Z monitor - type 'help' for more information\r |
7a370406 KW |
92 | (qemu) QEMU_PROG: -drive if=virtio: Device needs media, but drive is empty |
93 | QEMU_PROG: -drive if=virtio: Device initialization failed. | |
94 | QEMU_PROG: -drive if=virtio: Device initialization failed. | |
c09b437b | 95 | QEMU_PROG: -drive if=virtio: Device 'virtio-blk-pci' could not be initialized |
47e5df21 KW |
96 | |
97 | Testing: -drive if=scsi | |
9580498b | 98 | QEMU X.Y.Z monitor - type 'help' for more information\r |
7a370406 | 99 | (qemu) QEMU_PROG: -drive if=scsi: Device needs media, but drive is empty |
7a370406 | 100 | QEMU_PROG: Device initialization failed. |
c09b437b | 101 | QEMU_PROG: Initialization of device lsi53c895a failed |
47e5df21 KW |
102 | |
103 | Testing: -drive if=none,id=disk -device ide-cd,drive=disk | |
9580498b | 104 | QEMU X.Y.Z monitor - type 'help' for more information\r |
7a370406 | 105 | (qemu) q\e[K\e[Dqu\e[K\e[D\e[Dqui\e[K\e[D\e[D\e[Dquit\e[K\r |
47e5df21 KW |
106 | |
107 | Testing: -drive if=none,id=disk -device lsi53c895a -device scsi-cd,drive=disk | |
9580498b | 108 | QEMU X.Y.Z monitor - type 'help' for more information\r |
7a370406 | 109 | (qemu) q\e[K\e[Dqu\e[K\e[D\e[Dqui\e[K\e[D\e[D\e[Dquit\e[K\r |
47e5df21 KW |
110 | |
111 | Testing: -drive if=none,id=disk -device ide-drive,drive=disk | |
9580498b | 112 | QEMU X.Y.Z monitor - type 'help' for more information\r |
7a370406 KW |
113 | (qemu) QEMU_PROG: -device ide-drive,drive=disk: Device needs media, but drive is empty |
114 | QEMU_PROG: -device ide-drive,drive=disk: Device initialization failed. | |
c09b437b | 115 | QEMU_PROG: -device ide-drive,drive=disk: Device 'ide-drive' could not be initialized |
47e5df21 KW |
116 | |
117 | Testing: -drive if=none,id=disk -device ide-hd,drive=disk | |
9580498b | 118 | QEMU X.Y.Z monitor - type 'help' for more information\r |
7a370406 KW |
119 | (qemu) QEMU_PROG: -device ide-hd,drive=disk: Device needs media, but drive is empty |
120 | QEMU_PROG: -device ide-hd,drive=disk: Device initialization failed. | |
c09b437b | 121 | QEMU_PROG: -device ide-hd,drive=disk: Device 'ide-hd' could not be initialized |
47e5df21 KW |
122 | |
123 | Testing: -drive if=none,id=disk -device lsi53c895a -device scsi-disk,drive=disk | |
9580498b | 124 | QEMU X.Y.Z monitor - type 'help' for more information\r |
7a370406 KW |
125 | (qemu) QEMU_PROG: -device scsi-disk,drive=disk: Device needs media, but drive is empty |
126 | QEMU_PROG: -device scsi-disk,drive=disk: Device initialization failed. | |
c09b437b | 127 | QEMU_PROG: -device scsi-disk,drive=disk: Device 'scsi-disk' could not be initialized |
47e5df21 KW |
128 | |
129 | Testing: -drive if=none,id=disk -device lsi53c895a -device scsi-hd,drive=disk | |
9580498b | 130 | QEMU X.Y.Z monitor - type 'help' for more information\r |
7a370406 KW |
131 | (qemu) QEMU_PROG: -device scsi-hd,drive=disk: Device needs media, but drive is empty |
132 | QEMU_PROG: -device scsi-hd,drive=disk: Device initialization failed. | |
c09b437b | 133 | QEMU_PROG: -device scsi-hd,drive=disk: Device 'scsi-hd' could not be initialized |
47e5df21 KW |
134 | |
135 | ||
136 | === Read-only === | |
137 | ||
138 | Testing: -drive file=TEST_DIR/t.qcow2,if=floppy,readonly=on | |
9580498b | 139 | QEMU X.Y.Z monitor - type 'help' for more information\r |
7a370406 | 140 | (qemu) q\e[K\e[Dqu\e[K\e[D\e[Dqui\e[K\e[D\e[D\e[Dquit\e[K\r |
47e5df21 KW |
141 | |
142 | Testing: -drive file=TEST_DIR/t.qcow2,if=ide,media=cdrom,readonly=on | |
9580498b | 143 | QEMU X.Y.Z monitor - type 'help' for more information\r |
7a370406 | 144 | (qemu) q\e[K\e[Dqu\e[K\e[D\e[Dqui\e[K\e[D\e[D\e[Dquit\e[K\r |
47e5df21 KW |
145 | |
146 | Testing: -drive file=TEST_DIR/t.qcow2,if=scsi,media=cdrom,readonly=on | |
9580498b | 147 | QEMU X.Y.Z monitor - type 'help' for more information\r |
7a370406 | 148 | (qemu) q\e[K\e[Dqu\e[K\e[D\e[Dqui\e[K\e[D\e[D\e[Dquit\e[K\r |
47e5df21 KW |
149 | |
150 | Testing: -drive file=TEST_DIR/t.qcow2,if=ide,readonly=on | |
4f8a066b KW |
151 | QEMU X.Y.Z monitor - type 'help' for more information\r |
152 | (qemu) QEMU_PROG: Can't use a read-only drive | |
153 | QEMU_PROG: Device initialization failed. | |
154 | QEMU_PROG: Initialization of device ide-hd failed | |
47e5df21 KW |
155 | |
156 | Testing: -drive file=TEST_DIR/t.qcow2,if=virtio,readonly=on | |
9580498b | 157 | QEMU X.Y.Z monitor - type 'help' for more information\r |
7a370406 | 158 | (qemu) q\e[K\e[Dqu\e[K\e[D\e[Dqui\e[K\e[D\e[D\e[Dquit\e[K\r |
47e5df21 KW |
159 | |
160 | Testing: -drive file=TEST_DIR/t.qcow2,if=scsi,readonly=on | |
9580498b | 161 | QEMU X.Y.Z monitor - type 'help' for more information\r |
7a370406 | 162 | (qemu) q\e[K\e[Dqu\e[K\e[D\e[Dqui\e[K\e[D\e[D\e[Dquit\e[K\r |
47e5df21 KW |
163 | |
164 | Testing: -drive file=TEST_DIR/t.qcow2,if=none,id=disk,readonly=on -device ide-cd,drive=disk | |
9580498b | 165 | QEMU X.Y.Z monitor - type 'help' for more information\r |
7a370406 | 166 | (qemu) q\e[K\e[Dqu\e[K\e[D\e[Dqui\e[K\e[D\e[D\e[Dquit\e[K\r |
47e5df21 KW |
167 | |
168 | Testing: -drive file=TEST_DIR/t.qcow2,if=none,id=disk,readonly=on -device lsi53c895a -device scsi-cd,drive=disk | |
9580498b | 169 | QEMU X.Y.Z monitor - type 'help' for more information\r |
7a370406 | 170 | (qemu) q\e[K\e[Dqu\e[K\e[D\e[Dqui\e[K\e[D\e[D\e[Dquit\e[K\r |
47e5df21 KW |
171 | |
172 | Testing: -drive file=TEST_DIR/t.qcow2,if=none,id=disk,readonly=on -device ide-drive,drive=disk | |
9580498b | 173 | QEMU X.Y.Z monitor - type 'help' for more information\r |
7a370406 KW |
174 | (qemu) QEMU_PROG: -device ide-drive,drive=disk: Can't use a read-only drive |
175 | QEMU_PROG: -device ide-drive,drive=disk: Device initialization failed. | |
c09b437b | 176 | QEMU_PROG: -device ide-drive,drive=disk: Device 'ide-drive' could not be initialized |
47e5df21 KW |
177 | |
178 | Testing: -drive file=TEST_DIR/t.qcow2,if=none,id=disk,readonly=on -device ide-hd,drive=disk | |
9580498b | 179 | QEMU X.Y.Z monitor - type 'help' for more information\r |
7a370406 KW |
180 | (qemu) QEMU_PROG: -device ide-hd,drive=disk: Can't use a read-only drive |
181 | QEMU_PROG: -device ide-hd,drive=disk: Device initialization failed. | |
c09b437b | 182 | QEMU_PROG: -device ide-hd,drive=disk: Device 'ide-hd' could not be initialized |
47e5df21 KW |
183 | |
184 | Testing: -drive file=TEST_DIR/t.qcow2,if=none,id=disk,readonly=on -device lsi53c895a -device scsi-disk,drive=disk | |
9580498b | 185 | QEMU X.Y.Z monitor - type 'help' for more information\r |
7a370406 | 186 | (qemu) q\e[K\e[Dqu\e[K\e[D\e[Dqui\e[K\e[D\e[D\e[Dquit\e[K\r |
47e5df21 KW |
187 | |
188 | Testing: -drive file=TEST_DIR/t.qcow2,if=none,id=disk,readonly=on -device lsi53c895a -device scsi-hd,drive=disk | |
9580498b | 189 | QEMU X.Y.Z monitor - type 'help' for more information\r |
7a370406 | 190 | (qemu) q\e[K\e[Dqu\e[K\e[D\e[Dqui\e[K\e[D\e[D\e[Dquit\e[K\r |
47e5df21 KW |
191 | |
192 | ||
193 | === Cache modes === | |
194 | ||
195 | Testing: -drive media=cdrom,cache=none | |
9580498b | 196 | QEMU X.Y.Z monitor - type 'help' for more information\r |
7a370406 | 197 | (qemu) q\e[K\e[Dqu\e[K\e[D\e[Dqui\e[K\e[D\e[D\e[Dquit\e[K\r |
47e5df21 KW |
198 | |
199 | Testing: -drive media=cdrom,cache=directsync | |
9580498b | 200 | QEMU X.Y.Z monitor - type 'help' for more information\r |
7a370406 | 201 | (qemu) q\e[K\e[Dqu\e[K\e[D\e[Dqui\e[K\e[D\e[D\e[Dquit\e[K\r |
47e5df21 KW |
202 | |
203 | Testing: -drive media=cdrom,cache=writeback | |
9580498b | 204 | QEMU X.Y.Z monitor - type 'help' for more information\r |
7a370406 | 205 | (qemu) q\e[K\e[Dqu\e[K\e[D\e[Dqui\e[K\e[D\e[D\e[Dquit\e[K\r |
47e5df21 KW |
206 | |
207 | Testing: -drive media=cdrom,cache=writethrough | |
9580498b | 208 | QEMU X.Y.Z monitor - type 'help' for more information\r |
7a370406 | 209 | (qemu) q\e[K\e[Dqu\e[K\e[D\e[Dqui\e[K\e[D\e[D\e[Dquit\e[K\r |
47e5df21 KW |
210 | |
211 | Testing: -drive media=cdrom,cache=unsafe | |
9580498b | 212 | QEMU X.Y.Z monitor - type 'help' for more information\r |
7a370406 | 213 | (qemu) q\e[K\e[Dqu\e[K\e[D\e[Dqui\e[K\e[D\e[D\e[Dquit\e[K\r |
47e5df21 KW |
214 | |
215 | Testing: -drive media=cdrom,cache=invalid_value | |
c09b437b | 216 | QEMU_PROG: -drive media=cdrom,cache=invalid_value: invalid cache option |
47e5df21 | 217 | |
2af5ef70 KW |
218 | |
219 | === Specifying the protocol layer === | |
220 | ||
221 | Testing: -drive file=TEST_DIR/t.qcow2,file.driver=file | |
9580498b | 222 | QEMU X.Y.Z monitor - type 'help' for more information\r |
7a370406 | 223 | (qemu) q\e[K\e[Dqu\e[K\e[D\e[Dqui\e[K\e[D\e[D\e[Dquit\e[K\r |
2af5ef70 KW |
224 | |
225 | Testing: -drive file=TEST_DIR/t.qcow2,file.driver=qcow2 | |
2c78857b | 226 | QEMU_PROG: -drive file=TEST_DIR/t.qcow2,file.driver=qcow2: could not open disk image TEST_DIR/t.qcow2: Can't use 'qcow2' as a block driver for the protocol level |
2af5ef70 | 227 | |
98289620 KW |
228 | |
229 | === Parsing protocol from file name === | |
230 | ||
231 | Testing: -hda foo:bar | |
2c78857b | 232 | QEMU_PROG: -hda foo:bar: could not open disk image foo:bar: Unknown protocol |
98289620 KW |
233 | |
234 | Testing: -drive file=foo:bar | |
2c78857b | 235 | QEMU_PROG: -drive file=foo:bar: could not open disk image foo:bar: Unknown protocol |
98289620 KW |
236 | |
237 | Testing: -drive file.filename=foo:bar | |
b04b6b6e | 238 | QEMU_PROG: -drive file.filename=foo:bar: could not open disk image ide0-hd0: Could not open 'foo:bar': No such file or directory |
98289620 | 239 | |
47e5df21 | 240 | *** done |