Statistics
| Branch: | Revision:

root / tests / qemu-iotests / 051.out @ 9a05feab

History | View | Annotate | Download (27.3 kB)

1
QA output created by 051
2
Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=134217728 
3
Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=134217728 backing_file='TEST_DIR/t.IMGFMT.base' 
4

    
5
=== Unknown option ===
6

    
7
Testing: -drive file=TEST_DIR/t.qcow2,format=qcow2,unknown_opt=
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'
9

    
10
Testing: -drive file=TEST_DIR/t.qcow2,format=qcow2,unknown_opt=on
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'
12

    
13
Testing: -drive file=TEST_DIR/t.qcow2,format=qcow2,unknown_opt=1234
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'
15

    
16
Testing: -drive file=TEST_DIR/t.qcow2,format=qcow2,unknown_opt=foo
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'
18

    
19

    
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

    
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) iininfinfoinfo info binfo blinfo bloinfo blocinfo block
34
ide0-hd0: TEST_DIR/t.qcow2 (qcow2)
35
    Backing file:     TEST_DIR/t.qcow2.orig (chain depth: 1)
36
(qemu) qququiquit
37

    
38

    
39
=== Enable and disable lazy refcounting on the command line, plus some invalid values ===
40

    
41
Testing: -drive file=TEST_DIR/t.qcow2,format=qcow2,lazy-refcounts=on
42
QEMU X.Y.Z monitor - type 'help' for more information
43
(qemu) qququiquit
44

    
45
Testing: -drive file=TEST_DIR/t.qcow2,format=qcow2,lazy-refcounts=off
46
QEMU X.Y.Z monitor - type 'help' for more information
47
(qemu) qququiquit
48

    
49
Testing: -drive file=TEST_DIR/t.qcow2,format=qcow2,lazy-refcounts=
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'
51

    
52
Testing: -drive file=TEST_DIR/t.qcow2,format=qcow2,lazy-refcounts=42
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'
54

    
55
Testing: -drive file=TEST_DIR/t.qcow2,format=qcow2,lazy-refcounts=foo
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'
57

    
58

    
59
=== With version 2 images enabling lazy refcounts must fail ===
60

    
61
Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=134217728 
62
Testing: -drive file=TEST_DIR/t.qcow2,format=qcow2,lazy-refcounts=on
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
64

    
65
Testing: -drive file=TEST_DIR/t.qcow2,format=qcow2,lazy-refcounts=off
66
QEMU X.Y.Z monitor - type 'help' for more information
67
(qemu) qququiquit
68

    
69

    
70
=== No medium ===
71

    
72
Testing: -drive if=floppy
73
QEMU X.Y.Z monitor - type 'help' for more information
74
(qemu) qququiquit
75

    
76
Testing: -drive if=ide,media=cdrom
77
QEMU X.Y.Z monitor - type 'help' for more information
78
(qemu) qququiquit
79

    
80
Testing: -drive if=scsi,media=cdrom
81
QEMU X.Y.Z monitor - type 'help' for more information
82
(qemu) qququiquit
83

    
84
Testing: -drive if=ide
85
QEMU X.Y.Z monitor - type 'help' for more information
86
(qemu) QEMU_PROG: Device needs media, but drive is empty
87
QEMU_PROG: Device initialization failed.
88
QEMU_PROG: Initialization of device ide-hd failed
89

    
90
Testing: -drive if=virtio
91
QEMU X.Y.Z monitor - type 'help' for more information
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 'virtio-blk-pci' could not be initialized
95

    
96
Testing: -drive if=scsi
97
QEMU X.Y.Z monitor - type 'help' for more information
98
(qemu) QEMU_PROG: -drive if=scsi: Device needs media, but drive is empty
99
QEMU_PROG: Device initialization failed.
100
QEMU_PROG: Initialization of device lsi53c895a failed
101

    
102
Testing: -drive if=none,id=disk -device ide-cd,drive=disk
103
QEMU X.Y.Z monitor - type 'help' for more information
104
(qemu) qququiquit
105

    
106
Testing: -drive if=none,id=disk -device lsi53c895a -device scsi-cd,drive=disk
107
QEMU X.Y.Z monitor - type 'help' for more information
108
(qemu) qququiquit
109

    
110
Testing: -drive if=none,id=disk -device ide-drive,drive=disk
111
QEMU X.Y.Z monitor - type 'help' for more information
112
(qemu) QEMU_PROG: -device ide-drive,drive=disk: Device needs media, but drive is empty
113
QEMU_PROG: -device ide-drive,drive=disk: Device initialization failed.
114
QEMU_PROG: -device ide-drive,drive=disk: Device 'ide-drive' could not be initialized
115

    
116
Testing: -drive if=none,id=disk -device ide-hd,drive=disk
117
QEMU X.Y.Z monitor - type 'help' for more information
118
(qemu) QEMU_PROG: -device ide-hd,drive=disk: Device needs media, but drive is empty
119
QEMU_PROG: -device ide-hd,drive=disk: Device initialization failed.
120
QEMU_PROG: -device ide-hd,drive=disk: Device 'ide-hd' could not be initialized
121

    
122
Testing: -drive if=none,id=disk -device lsi53c895a -device scsi-disk,drive=disk
123
QEMU X.Y.Z monitor - type 'help' for more information
124
(qemu) QEMU_PROG: -device scsi-disk,drive=disk: Device needs media, but drive is empty
125
QEMU_PROG: -device scsi-disk,drive=disk: Device initialization failed.
126
QEMU_PROG: -device scsi-disk,drive=disk: Device 'scsi-disk' could not be initialized
127

    
128
Testing: -drive if=none,id=disk -device lsi53c895a -device scsi-hd,drive=disk
129
QEMU X.Y.Z monitor - type 'help' for more information
130
(qemu) QEMU_PROG: -device scsi-hd,drive=disk: Device needs media, but drive is empty
131
QEMU_PROG: -device scsi-hd,drive=disk: Device initialization failed.
132
QEMU_PROG: -device scsi-hd,drive=disk: Device 'scsi-hd' could not be initialized
133

    
134

    
135
=== Read-only ===
136

    
137
Testing: -drive file=TEST_DIR/t.qcow2,if=floppy,readonly=on
138
QEMU X.Y.Z monitor - type 'help' for more information
139
(qemu) qququiquit
140

    
141
Testing: -drive file=TEST_DIR/t.qcow2,if=ide,media=cdrom,readonly=on
142
QEMU X.Y.Z monitor - type 'help' for more information
143
(qemu) qququiquit
144

    
145
Testing: -drive file=TEST_DIR/t.qcow2,if=scsi,media=cdrom,readonly=on
146
QEMU X.Y.Z monitor - type 'help' for more information
147
(qemu) qququiquit
148

    
149
Testing: -drive file=TEST_DIR/t.qcow2,if=ide,readonly=on
150
QEMU X.Y.Z monitor - type 'help' for more information
151
(qemu) QEMU_PROG: Can't use a read-only drive
152
QEMU_PROG: Device initialization failed.
153
QEMU_PROG: Initialization of device ide-hd failed
154

    
155
Testing: -drive file=TEST_DIR/t.qcow2,if=virtio,readonly=on
156
QEMU X.Y.Z monitor - type 'help' for more information
157
(qemu) qququiquit
158

    
159
Testing: -drive file=TEST_DIR/t.qcow2,if=scsi,readonly=on
160
QEMU X.Y.Z monitor - type 'help' for more information
161
(qemu) qququiquit
162

    
163
Testing: -drive file=TEST_DIR/t.qcow2,if=none,id=disk,readonly=on -device ide-cd,drive=disk
164
QEMU X.Y.Z monitor - type 'help' for more information
165
(qemu) qququiquit
166

    
167
Testing: -drive file=TEST_DIR/t.qcow2,if=none,id=disk,readonly=on -device lsi53c895a -device scsi-cd,drive=disk
168
QEMU X.Y.Z monitor - type 'help' for more information
169
(qemu) qququiquit
170

    
171
Testing: -drive file=TEST_DIR/t.qcow2,if=none,id=disk,readonly=on -device ide-drive,drive=disk
172
QEMU X.Y.Z monitor - type 'help' for more information
173
(qemu) QEMU_PROG: -device ide-drive,drive=disk: Can't use a read-only drive
174
QEMU_PROG: -device ide-drive,drive=disk: Device initialization failed.
175
QEMU_PROG: -device ide-drive,drive=disk: Device 'ide-drive' could not be initialized
176

    
177
Testing: -drive file=TEST_DIR/t.qcow2,if=none,id=disk,readonly=on -device ide-hd,drive=disk
178
QEMU X.Y.Z monitor - type 'help' for more information
179
(qemu) QEMU_PROG: -device ide-hd,drive=disk: Can't use a read-only drive
180
QEMU_PROG: -device ide-hd,drive=disk: Device initialization failed.
181
QEMU_PROG: -device ide-hd,drive=disk: Device 'ide-hd' could not be initialized
182

    
183
Testing: -drive file=TEST_DIR/t.qcow2,if=none,id=disk,readonly=on -device lsi53c895a -device scsi-disk,drive=disk
184
QEMU X.Y.Z monitor - type 'help' for more information
185
(qemu) qququiquit
186

    
187
Testing: -drive file=TEST_DIR/t.qcow2,if=none,id=disk,readonly=on -device lsi53c895a -device scsi-hd,drive=disk
188
QEMU X.Y.Z monitor - type 'help' for more information
189
(qemu) qququiquit
190

    
191

    
192
=== Cache modes ===
193

    
194
Testing: -drive media=cdrom,cache=none
195
QEMU X.Y.Z monitor - type 'help' for more information
196
(qemu) qququiquit
197

    
198
Testing: -drive media=cdrom,cache=directsync
199
QEMU X.Y.Z monitor - type 'help' for more information
200
(qemu) qququiquit
201

    
202
Testing: -drive media=cdrom,cache=writeback
203
QEMU X.Y.Z monitor - type 'help' for more information
204
(qemu) qququiquit
205

    
206
Testing: -drive media=cdrom,cache=writethrough
207
QEMU X.Y.Z monitor - type 'help' for more information
208
(qemu) qququiquit
209

    
210
Testing: -drive media=cdrom,cache=unsafe
211
QEMU X.Y.Z monitor - type 'help' for more information
212
(qemu) qququiquit
213

    
214
Testing: -drive media=cdrom,cache=invalid_value
215
QEMU_PROG: -drive media=cdrom,cache=invalid_value: invalid cache option
216

    
217

    
218
=== Specifying the protocol layer ===
219

    
220
Testing: -drive file=TEST_DIR/t.qcow2,file.driver=file
221
QEMU X.Y.Z monitor - type 'help' for more information
222
(qemu) qququiquit
223

    
224
Testing: -drive file=TEST_DIR/t.qcow2,file.driver=qcow2
225
QEMU_PROG: -drive file=TEST_DIR/t.qcow2,file.driver=qcow2: could not open disk image TEST_DIR/t.qcow2: Block format 'qcow2' used by device '' doesn't support the option 'filename'
226

    
227

    
228
=== Leaving out required options ===
229

    
230
Testing: -drive driver=file
231
QEMU_PROG: -drive driver=file: could not open disk image ide0-hd0: The 'file' block driver requires a file name
232

    
233
Testing: -drive driver=nbd
234
QEMU_PROG: -drive driver=nbd: could not open disk image ide0-hd0: one of path and host must be specified.
235

    
236
Testing: -drive driver=raw
237
QEMU_PROG: -drive driver=raw: could not open disk image ide0-hd0: Can't use 'raw' as a block driver for the protocol level
238

    
239
Testing: -drive file.driver=file
240
QEMU_PROG: -drive file.driver=file: could not open disk image ide0-hd0: The 'file' block driver requires a file name
241

    
242
Testing: -drive file.driver=nbd
243
QEMU_PROG: -drive file.driver=nbd: could not open disk image ide0-hd0: one of path and host must be specified.
244

    
245
Testing: -drive file.driver=raw
246
QEMU_PROG: -drive file.driver=raw: could not open disk image ide0-hd0: Can't use 'raw' as a block driver for the protocol level
247

    
248
Testing: -drive foo=bar
249
QEMU_PROG: -drive foo=bar: could not open disk image ide0-hd0: Must specify either driver or file
250

    
251

    
252
=== Parsing protocol from file name ===
253

    
254
Testing: -hda foo:bar
255
QEMU_PROG: -hda foo:bar: could not open disk image foo:bar: Unknown protocol
256

    
257
Testing: -drive file=foo:bar
258
QEMU_PROG: -drive file=foo:bar: could not open disk image foo:bar: Unknown protocol
259

    
260
Testing: -drive file.filename=foo:bar
261
QEMU_PROG: -drive file.filename=foo:bar: could not open disk image ide0-hd0: Could not open 'foo:bar': No such file or directory
262

    
263

    
264
=== Snapshot mode ===
265

    
266
wrote 4096/4096 bytes at offset 0
267
4 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
268
Testing: -drive file=TEST_DIR/t.qcow2 -snapshot
269
QEMU X.Y.Z monitor - type 'help' for more information
270
(qemu) qqeqemqemuqemu-qemu-iqemu-ioqemu-io qemu-io iqemu-io idqemu-io ideqemu-io ide0qemu-io ide0-qemu-io ide0-hqemu-io ide0-hdqemu-io ide0-hd0qemu-io ide0-hd0 qemu-io ide0-hd0 "qemu-io ide0-hd0 "wqemu-io ide0-hd0 "wrqemu-io ide0-hd0 "wriqemu-io ide0-hd0 "writqemu-io ide0-hd0 "writeqemu-io ide0-hd0 "write qemu-io ide0-hd0 "write -qemu-io ide0-hd0 "write -Pqemu-io ide0-hd0 "write -P qemu-io ide0-hd0 "write -P 0qemu-io ide0-hd0 "write -P 0xqemu-io ide0-hd0 "write -P 0x2qemu-io ide0-hd0 "write -P 0x22qemu-io ide0-hd0 "write -P 0x22 qemu-io ide0-hd0 "write -P 0x22 0qemu-io ide0-hd0 "write -P 0x22 0 qemu-io ide0-hd0 "write -P 0x22 0 4qemu-io ide0-hd0 "write -P 0x22 0 4kqemu-io ide0-hd0 "write -P 0x22 0 4k"
271
wrote 4096/4096 bytes at offset 0
272
4 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
273
(qemu) qququiquit
274

    
275
Testing: -drive file=TEST_DIR/t.qcow2,snapshot=on
276
QEMU X.Y.Z monitor - type 'help' for more information
277
(qemu) qqeqemqemuqemu-qemu-iqemu-ioqemu-io qemu-io iqemu-io idqemu-io ideqemu-io ide0qemu-io ide0-qemu-io ide0-hqemu-io ide0-hdqemu-io ide0-hd0qemu-io ide0-hd0 qemu-io ide0-hd0 "qemu-io ide0-hd0 "wqemu-io ide0-hd0 "wrqemu-io ide0-hd0 "wriqemu-io ide0-hd0 "writqemu-io ide0-hd0 "writeqemu-io ide0-hd0 "write qemu-io ide0-hd0 "write -qemu-io ide0-hd0 "write -Pqemu-io ide0-hd0 "write -P qemu-io ide0-hd0 "write -P 0qemu-io ide0-hd0 "write -P 0xqemu-io ide0-hd0 "write -P 0x2qemu-io ide0-hd0 "write -P 0x22qemu-io ide0-hd0 "write -P 0x22 qemu-io ide0-hd0 "write -P 0x22 0qemu-io ide0-hd0 "write -P 0x22 0 qemu-io ide0-hd0 "write -P 0x22 0 4qemu-io ide0-hd0 "write -P 0x22 0 4kqemu-io ide0-hd0 "write -P 0x22 0 4k"
278
wrote 4096/4096 bytes at offset 0
279
4 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
280
(qemu) qququiquit
281

    
282
Testing: -drive file.filename=TEST_DIR/t.qcow2,driver=qcow2,snapshot=on
283
QEMU X.Y.Z monitor - type 'help' for more information
284
(qemu) qqeqemqemuqemu-qemu-iqemu-ioqemu-io qemu-io iqemu-io idqemu-io ideqemu-io ide0qemu-io ide0-qemu-io ide0-hqemu-io ide0-hdqemu-io ide0-hd0qemu-io ide0-hd0 qemu-io ide0-hd0 "qemu-io ide0-hd0 "wqemu-io ide0-hd0 "wrqemu-io ide0-hd0 "wriqemu-io ide0-hd0 "writqemu-io ide0-hd0 "writeqemu-io ide0-hd0 "write qemu-io ide0-hd0 "write -qemu-io ide0-hd0 "write -Pqemu-io ide0-hd0 "write -P qemu-io ide0-hd0 "write -P 0qemu-io ide0-hd0 "write -P 0xqemu-io ide0-hd0 "write -P 0x2qemu-io ide0-hd0 "write -P 0x22qemu-io ide0-hd0 "write -P 0x22 qemu-io ide0-hd0 "write -P 0x22 0qemu-io ide0-hd0 "write -P 0x22 0 qemu-io ide0-hd0 "write -P 0x22 0 4qemu-io ide0-hd0 "write -P 0x22 0 4kqemu-io ide0-hd0 "write -P 0x22 0 4k"
285
wrote 4096/4096 bytes at offset 0
286
4 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
287
(qemu) qququiquit
288

    
289
Testing: -drive file.filename=TEST_DIR/t.qcow2,driver=qcow2 -snapshot
290
QEMU X.Y.Z monitor - type 'help' for more information
291
(qemu) qqeqemqemuqemu-qemu-iqemu-ioqemu-io qemu-io iqemu-io idqemu-io ideqemu-io ide0qemu-io ide0-qemu-io ide0-hqemu-io ide0-hdqemu-io ide0-hd0qemu-io ide0-hd0 qemu-io ide0-hd0 "qemu-io ide0-hd0 "wqemu-io ide0-hd0 "wrqemu-io ide0-hd0 "wriqemu-io ide0-hd0 "writqemu-io ide0-hd0 "writeqemu-io ide0-hd0 "write qemu-io ide0-hd0 "write -qemu-io ide0-hd0 "write -Pqemu-io ide0-hd0 "write -P qemu-io ide0-hd0 "write -P 0qemu-io ide0-hd0 "write -P 0xqemu-io ide0-hd0 "write -P 0x2qemu-io ide0-hd0 "write -P 0x22qemu-io ide0-hd0 "write -P 0x22 qemu-io ide0-hd0 "write -P 0x22 0qemu-io ide0-hd0 "write -P 0x22 0 qemu-io ide0-hd0 "write -P 0x22 0 4qemu-io ide0-hd0 "write -P 0x22 0 4kqemu-io ide0-hd0 "write -P 0x22 0 4k"
292
wrote 4096/4096 bytes at offset 0
293
4 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
294
(qemu) qququiquit
295

    
296
read 4096/4096 bytes at offset 0
297
4 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
298
Testing: -drive file=TEST_DIR/t.qcow2,snapshot=off
299
QEMU X.Y.Z monitor - type 'help' for more information
300
(qemu) qqeqemqemuqemu-qemu-iqemu-ioqemu-io qemu-io iqemu-io idqemu-io ideqemu-io ide0qemu-io ide0-qemu-io ide0-hqemu-io ide0-hdqemu-io ide0-hd0qemu-io ide0-hd0 qemu-io ide0-hd0 "qemu-io ide0-hd0 "wqemu-io ide0-hd0 "wrqemu-io ide0-hd0 "wriqemu-io ide0-hd0 "writqemu-io ide0-hd0 "writeqemu-io ide0-hd0 "write qemu-io ide0-hd0 "write -qemu-io ide0-hd0 "write -Pqemu-io ide0-hd0 "write -P qemu-io ide0-hd0 "write -P 0qemu-io ide0-hd0 "write -P 0xqemu-io ide0-hd0 "write -P 0x2qemu-io ide0-hd0 "write -P 0x22qemu-io ide0-hd0 "write -P 0x22 qemu-io ide0-hd0 "write -P 0x22 0qemu-io ide0-hd0 "write -P 0x22 0 qemu-io ide0-hd0 "write -P 0x22 0 4qemu-io ide0-hd0 "write -P 0x22 0 4kqemu-io ide0-hd0 "write -P 0x22 0 4k"
301
wrote 4096/4096 bytes at offset 0
302
4 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
303
(qemu) qququiquit
304

    
305
read 4096/4096 bytes at offset 0
306
4 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
307
*** done