xref: /openbmc/qemu/tests/qemu-iotests/172.out (revision 587adaca)
1QA output created by 172
2Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=737280
3Formatting 'TEST_DIR/t.IMGFMT.2', fmt=IMGFMT size=737280
4Formatting 'TEST_DIR/t.IMGFMT.3', fmt=IMGFMT size=737280
5
6
7=== Default ===
8
9Testing:
10
11          dev: isa-fdc, id ""
12            iobase = 1008 (0x3f0)
13            irq = 6 (0x6)
14            dma = 2 (0x2)
15            fdtypeA = "auto"
16            fdtypeB = "auto"
17            fallback = "288"
18            isa irq 6
19            bus: floppy-bus.0
20              type floppy-bus
21              dev: floppy, id ""
22                unit = 0 (0x0)
23                drive = "floppy0"
24                logical_block_size = 512 (512 B)
25                physical_block_size = 512 (512 B)
26                min_io_size = 0 (0 B)
27                opt_io_size = 0 (0 B)
28                discard_granularity = 4294967295 (4 GiB)
29                write-cache = "auto"
30                share-rw = false
31                drive-type = "288"
32
33
34=== Using -fda/-fdb options ===
35
36Testing: -fda TEST_DIR/t.qcow2
37
38          dev: isa-fdc, id ""
39            iobase = 1008 (0x3f0)
40            irq = 6 (0x6)
41            dma = 2 (0x2)
42            fdtypeA = "auto"
43            fdtypeB = "auto"
44            fallback = "288"
45            isa irq 6
46            bus: floppy-bus.0
47              type floppy-bus
48              dev: floppy, id ""
49                unit = 0 (0x0)
50                drive = "floppy0"
51                logical_block_size = 512 (512 B)
52                physical_block_size = 512 (512 B)
53                min_io_size = 0 (0 B)
54                opt_io_size = 0 (0 B)
55                discard_granularity = 4294967295 (4 GiB)
56                write-cache = "auto"
57                share-rw = false
58                drive-type = "144"
59floppy0 (NODE_NAME): TEST_DIR/t.qcow2 (qcow2)
60    Attached to:      /machine/unattached/device[N]
61    Removable device: not locked, tray closed
62    Cache mode:       writeback
63
64ide1-cd0: [not inserted]
65    Attached to:      /machine/unattached/device[N]
66    Removable device: not locked, tray closed
67
68sd0: [not inserted]
69    Removable device: not locked, tray closed
70(qemu) quit
71
72
73Testing: -fdb TEST_DIR/t.qcow2
74
75          dev: isa-fdc, id ""
76            iobase = 1008 (0x3f0)
77            irq = 6 (0x6)
78            dma = 2 (0x2)
79            fdtypeA = "auto"
80            fdtypeB = "auto"
81            fallback = "288"
82            isa irq 6
83            bus: floppy-bus.0
84              type floppy-bus
85              dev: floppy, id ""
86                unit = 1 (0x1)
87                drive = "floppy1"
88                logical_block_size = 512 (512 B)
89                physical_block_size = 512 (512 B)
90                min_io_size = 0 (0 B)
91                opt_io_size = 0 (0 B)
92                discard_granularity = 4294967295 (4 GiB)
93                write-cache = "auto"
94                share-rw = false
95                drive-type = "144"
96              dev: floppy, id ""
97                unit = 0 (0x0)
98                drive = "floppy0"
99                logical_block_size = 512 (512 B)
100                physical_block_size = 512 (512 B)
101                min_io_size = 0 (0 B)
102                opt_io_size = 0 (0 B)
103                discard_granularity = 4294967295 (4 GiB)
104                write-cache = "auto"
105                share-rw = false
106                drive-type = "288"
107floppy1 (NODE_NAME): TEST_DIR/t.qcow2 (qcow2)
108    Attached to:      /machine/unattached/device[N]
109    Removable device: not locked, tray closed
110    Cache mode:       writeback
111
112ide1-cd0: [not inserted]
113    Attached to:      /machine/unattached/device[N]
114    Removable device: not locked, tray closed
115
116floppy0: [not inserted]
117    Attached to:      /machine/unattached/device[N]
118    Removable device: not locked, tray closed
119
120sd0: [not inserted]
121    Removable device: not locked, tray closed
122(qemu) quit
123
124
125Testing: -fda TEST_DIR/t.qcow2 -fdb TEST_DIR/t.qcow2.2
126
127          dev: isa-fdc, id ""
128            iobase = 1008 (0x3f0)
129            irq = 6 (0x6)
130            dma = 2 (0x2)
131            fdtypeA = "auto"
132            fdtypeB = "auto"
133            fallback = "288"
134            isa irq 6
135            bus: floppy-bus.0
136              type floppy-bus
137              dev: floppy, id ""
138                unit = 1 (0x1)
139                drive = "floppy1"
140                logical_block_size = 512 (512 B)
141                physical_block_size = 512 (512 B)
142                min_io_size = 0 (0 B)
143                opt_io_size = 0 (0 B)
144                discard_granularity = 4294967295 (4 GiB)
145                write-cache = "auto"
146                share-rw = false
147                drive-type = "144"
148              dev: floppy, id ""
149                unit = 0 (0x0)
150                drive = "floppy0"
151                logical_block_size = 512 (512 B)
152                physical_block_size = 512 (512 B)
153                min_io_size = 0 (0 B)
154                opt_io_size = 0 (0 B)
155                discard_granularity = 4294967295 (4 GiB)
156                write-cache = "auto"
157                share-rw = false
158                drive-type = "144"
159floppy0 (NODE_NAME): TEST_DIR/t.qcow2 (qcow2)
160    Attached to:      /machine/unattached/device[N]
161    Removable device: not locked, tray closed
162    Cache mode:       writeback
163
164floppy1 (NODE_NAME): TEST_DIR/t.qcow2.2 (qcow2)
165    Attached to:      /machine/unattached/device[N]
166    Removable device: not locked, tray closed
167    Cache mode:       writeback
168
169ide1-cd0: [not inserted]
170    Attached to:      /machine/unattached/device[N]
171    Removable device: not locked, tray closed
172
173sd0: [not inserted]
174    Removable device: not locked, tray closed
175(qemu) quit
176
177
178Testing: -fdb
179
180          dev: isa-fdc, id ""
181            iobase = 1008 (0x3f0)
182            irq = 6 (0x6)
183            dma = 2 (0x2)
184            fdtypeA = "auto"
185            fdtypeB = "auto"
186            fallback = "288"
187            isa irq 6
188            bus: floppy-bus.0
189              type floppy-bus
190              dev: floppy, id ""
191                unit = 1 (0x1)
192                drive = "floppy1"
193                logical_block_size = 512 (512 B)
194                physical_block_size = 512 (512 B)
195                min_io_size = 0 (0 B)
196                opt_io_size = 0 (0 B)
197                discard_granularity = 4294967295 (4 GiB)
198                write-cache = "auto"
199                share-rw = false
200                drive-type = "288"
201              dev: floppy, id ""
202                unit = 0 (0x0)
203                drive = "floppy0"
204                logical_block_size = 512 (512 B)
205                physical_block_size = 512 (512 B)
206                min_io_size = 0 (0 B)
207                opt_io_size = 0 (0 B)
208                discard_granularity = 4294967295 (4 GiB)
209                write-cache = "auto"
210                share-rw = false
211                drive-type = "288"
212
213
214=== Using -drive options ===
215
216Testing: -drive if=floppy,file=TEST_DIR/t.qcow2
217
218          dev: isa-fdc, id ""
219            iobase = 1008 (0x3f0)
220            irq = 6 (0x6)
221            dma = 2 (0x2)
222            fdtypeA = "auto"
223            fdtypeB = "auto"
224            fallback = "288"
225            isa irq 6
226            bus: floppy-bus.0
227              type floppy-bus
228              dev: floppy, id ""
229                unit = 0 (0x0)
230                drive = "floppy0"
231                logical_block_size = 512 (512 B)
232                physical_block_size = 512 (512 B)
233                min_io_size = 0 (0 B)
234                opt_io_size = 0 (0 B)
235                discard_granularity = 4294967295 (4 GiB)
236                write-cache = "auto"
237                share-rw = false
238                drive-type = "144"
239floppy0 (NODE_NAME): TEST_DIR/t.qcow2 (qcow2)
240    Attached to:      /machine/unattached/device[N]
241    Removable device: not locked, tray closed
242    Cache mode:       writeback
243
244ide1-cd0: [not inserted]
245    Attached to:      /machine/unattached/device[N]
246    Removable device: not locked, tray closed
247
248sd0: [not inserted]
249    Removable device: not locked, tray closed
250(qemu) quit
251
252
253Testing: -drive if=floppy,file=TEST_DIR/t.qcow2,index=1
254
255          dev: isa-fdc, id ""
256            iobase = 1008 (0x3f0)
257            irq = 6 (0x6)
258            dma = 2 (0x2)
259            fdtypeA = "auto"
260            fdtypeB = "auto"
261            fallback = "288"
262            isa irq 6
263            bus: floppy-bus.0
264              type floppy-bus
265              dev: floppy, id ""
266                unit = 1 (0x1)
267                drive = "floppy1"
268                logical_block_size = 512 (512 B)
269                physical_block_size = 512 (512 B)
270                min_io_size = 0 (0 B)
271                opt_io_size = 0 (0 B)
272                discard_granularity = 4294967295 (4 GiB)
273                write-cache = "auto"
274                share-rw = false
275                drive-type = "144"
276              dev: floppy, id ""
277                unit = 0 (0x0)
278                drive = "floppy0"
279                logical_block_size = 512 (512 B)
280                physical_block_size = 512 (512 B)
281                min_io_size = 0 (0 B)
282                opt_io_size = 0 (0 B)
283                discard_granularity = 4294967295 (4 GiB)
284                write-cache = "auto"
285                share-rw = false
286                drive-type = "288"
287floppy1 (NODE_NAME): TEST_DIR/t.qcow2 (qcow2)
288    Attached to:      /machine/unattached/device[N]
289    Removable device: not locked, tray closed
290    Cache mode:       writeback
291
292ide1-cd0: [not inserted]
293    Attached to:      /machine/unattached/device[N]
294    Removable device: not locked, tray closed
295
296floppy0: [not inserted]
297    Attached to:      /machine/unattached/device[N]
298    Removable device: not locked, tray closed
299
300sd0: [not inserted]
301    Removable device: not locked, tray closed
302(qemu) quit
303
304
305Testing: -drive if=floppy,file=TEST_DIR/t.qcow2 -drive if=floppy,file=TEST_DIR/t.qcow2.2,index=1
306
307          dev: isa-fdc, id ""
308            iobase = 1008 (0x3f0)
309            irq = 6 (0x6)
310            dma = 2 (0x2)
311            fdtypeA = "auto"
312            fdtypeB = "auto"
313            fallback = "288"
314            isa irq 6
315            bus: floppy-bus.0
316              type floppy-bus
317              dev: floppy, id ""
318                unit = 1 (0x1)
319                drive = "floppy1"
320                logical_block_size = 512 (512 B)
321                physical_block_size = 512 (512 B)
322                min_io_size = 0 (0 B)
323                opt_io_size = 0 (0 B)
324                discard_granularity = 4294967295 (4 GiB)
325                write-cache = "auto"
326                share-rw = false
327                drive-type = "144"
328              dev: floppy, id ""
329                unit = 0 (0x0)
330                drive = "floppy0"
331                logical_block_size = 512 (512 B)
332                physical_block_size = 512 (512 B)
333                min_io_size = 0 (0 B)
334                opt_io_size = 0 (0 B)
335                discard_granularity = 4294967295 (4 GiB)
336                write-cache = "auto"
337                share-rw = false
338                drive-type = "144"
339floppy0 (NODE_NAME): TEST_DIR/t.qcow2 (qcow2)
340    Attached to:      /machine/unattached/device[N]
341    Removable device: not locked, tray closed
342    Cache mode:       writeback
343
344floppy1 (NODE_NAME): TEST_DIR/t.qcow2.2 (qcow2)
345    Attached to:      /machine/unattached/device[N]
346    Removable device: not locked, tray closed
347    Cache mode:       writeback
348
349ide1-cd0: [not inserted]
350    Attached to:      /machine/unattached/device[N]
351    Removable device: not locked, tray closed
352
353sd0: [not inserted]
354    Removable device: not locked, tray closed
355(qemu) quit
356
357
358
359=== Using -drive if=none and -device ===
360
361Testing: -drive if=none,file=TEST_DIR/t.qcow2 -device floppy,drive=none0
362
363          dev: isa-fdc, id ""
364            iobase = 1008 (0x3f0)
365            irq = 6 (0x6)
366            dma = 2 (0x2)
367            fdtypeA = "auto"
368            fdtypeB = "auto"
369            fallback = "288"
370            isa irq 6
371            bus: floppy-bus.0
372              type floppy-bus
373              dev: floppy, id ""
374                unit = 0 (0x0)
375                drive = "none0"
376                logical_block_size = 512 (512 B)
377                physical_block_size = 512 (512 B)
378                min_io_size = 0 (0 B)
379                opt_io_size = 0 (0 B)
380                discard_granularity = 4294967295 (4 GiB)
381                write-cache = "auto"
382                share-rw = false
383                drive-type = "144"
384none0 (NODE_NAME): TEST_DIR/t.qcow2 (qcow2)
385    Attached to:      /machine/peripheral-anon/device[N]
386    Removable device: not locked, tray closed
387    Cache mode:       writeback
388
389ide1-cd0: [not inserted]
390    Attached to:      /machine/unattached/device[N]
391    Removable device: not locked, tray closed
392
393sd0: [not inserted]
394    Removable device: not locked, tray closed
395(qemu) quit
396
397
398Testing: -drive if=none,file=TEST_DIR/t.qcow2 -device floppy,drive=none0,unit=1
399
400          dev: isa-fdc, id ""
401            iobase = 1008 (0x3f0)
402            irq = 6 (0x6)
403            dma = 2 (0x2)
404            fdtypeA = "auto"
405            fdtypeB = "auto"
406            fallback = "288"
407            isa irq 6
408            bus: floppy-bus.0
409              type floppy-bus
410              dev: floppy, id ""
411                unit = 1 (0x1)
412                drive = "none0"
413                logical_block_size = 512 (512 B)
414                physical_block_size = 512 (512 B)
415                min_io_size = 0 (0 B)
416                opt_io_size = 0 (0 B)
417                discard_granularity = 4294967295 (4 GiB)
418                write-cache = "auto"
419                share-rw = false
420                drive-type = "144"
421none0 (NODE_NAME): TEST_DIR/t.qcow2 (qcow2)
422    Attached to:      /machine/peripheral-anon/device[N]
423    Removable device: not locked, tray closed
424    Cache mode:       writeback
425
426ide1-cd0: [not inserted]
427    Attached to:      /machine/unattached/device[N]
428    Removable device: not locked, tray closed
429
430sd0: [not inserted]
431    Removable device: not locked, tray closed
432(qemu) quit
433
434
435Testing: -drive if=none,file=TEST_DIR/t.qcow2 -drive if=none,file=TEST_DIR/t.qcow2.2 -device floppy,drive=none0 -device floppy,drive=none1,unit=1
436
437          dev: isa-fdc, id ""
438            iobase = 1008 (0x3f0)
439            irq = 6 (0x6)
440            dma = 2 (0x2)
441            fdtypeA = "auto"
442            fdtypeB = "auto"
443            fallback = "288"
444            isa irq 6
445            bus: floppy-bus.0
446              type floppy-bus
447              dev: floppy, id ""
448                unit = 1 (0x1)
449                drive = "none1"
450                logical_block_size = 512 (512 B)
451                physical_block_size = 512 (512 B)
452                min_io_size = 0 (0 B)
453                opt_io_size = 0 (0 B)
454                discard_granularity = 4294967295 (4 GiB)
455                write-cache = "auto"
456                share-rw = false
457                drive-type = "144"
458              dev: floppy, id ""
459                unit = 0 (0x0)
460                drive = "none0"
461                logical_block_size = 512 (512 B)
462                physical_block_size = 512 (512 B)
463                min_io_size = 0 (0 B)
464                opt_io_size = 0 (0 B)
465                discard_granularity = 4294967295 (4 GiB)
466                write-cache = "auto"
467                share-rw = false
468                drive-type = "144"
469none0 (NODE_NAME): TEST_DIR/t.qcow2 (qcow2)
470    Attached to:      /machine/peripheral-anon/device[N]
471    Removable device: not locked, tray closed
472    Cache mode:       writeback
473
474none1 (NODE_NAME): TEST_DIR/t.qcow2.2 (qcow2)
475    Attached to:      /machine/peripheral-anon/device[N]
476    Removable device: not locked, tray closed
477    Cache mode:       writeback
478
479ide1-cd0: [not inserted]
480    Attached to:      /machine/unattached/device[N]
481    Removable device: not locked, tray closed
482
483sd0: [not inserted]
484    Removable device: not locked, tray closed
485(qemu) quit
486
487
488
489=== Mixing -fdX and -global ===
490
491Testing: -fda TEST_DIR/t.qcow2 -drive if=none,file=TEST_DIR/t.qcow2.2 -global floppy.drive=none0
492QEMU_PROG: -global floppy.drive=... conflicts with drive=floppy0
493
494
495=== Mixing -fdX and -device ===
496
497Testing: -fda TEST_DIR/t.qcow2 -drive if=none,file=TEST_DIR/t.qcow2.2 -device floppy,drive=none0
498
499          dev: isa-fdc, id ""
500            iobase = 1008 (0x3f0)
501            irq = 6 (0x6)
502            dma = 2 (0x2)
503            fdtypeA = "auto"
504            fdtypeB = "auto"
505            fallback = "288"
506            isa irq 6
507            bus: floppy-bus.0
508              type floppy-bus
509              dev: floppy, id ""
510                unit = 1 (0x1)
511                drive = "none0"
512                logical_block_size = 512 (512 B)
513                physical_block_size = 512 (512 B)
514                min_io_size = 0 (0 B)
515                opt_io_size = 0 (0 B)
516                discard_granularity = 4294967295 (4 GiB)
517                write-cache = "auto"
518                share-rw = false
519                drive-type = "144"
520              dev: floppy, id ""
521                unit = 0 (0x0)
522                drive = "floppy0"
523                logical_block_size = 512 (512 B)
524                physical_block_size = 512 (512 B)
525                min_io_size = 0 (0 B)
526                opt_io_size = 0 (0 B)
527                discard_granularity = 4294967295 (4 GiB)
528                write-cache = "auto"
529                share-rw = false
530                drive-type = "144"
531floppy0 (NODE_NAME): TEST_DIR/t.qcow2 (qcow2)
532    Attached to:      /machine/unattached/device[N]
533    Removable device: not locked, tray closed
534    Cache mode:       writeback
535
536none0 (NODE_NAME): TEST_DIR/t.qcow2.2 (qcow2)
537    Attached to:      /machine/peripheral-anon/device[N]
538    Removable device: not locked, tray closed
539    Cache mode:       writeback
540
541ide1-cd0: [not inserted]
542    Attached to:      /machine/unattached/device[N]
543    Removable device: not locked, tray closed
544
545sd0: [not inserted]
546    Removable device: not locked, tray closed
547(qemu) quit
548
549
550Testing: -fda TEST_DIR/t.qcow2 -drive if=none,file=TEST_DIR/t.qcow2.2 -device floppy,drive=none0,unit=1
551
552          dev: isa-fdc, id ""
553            iobase = 1008 (0x3f0)
554            irq = 6 (0x6)
555            dma = 2 (0x2)
556            fdtypeA = "auto"
557            fdtypeB = "auto"
558            fallback = "288"
559            isa irq 6
560            bus: floppy-bus.0
561              type floppy-bus
562              dev: floppy, id ""
563                unit = 1 (0x1)
564                drive = "none0"
565                logical_block_size = 512 (512 B)
566                physical_block_size = 512 (512 B)
567                min_io_size = 0 (0 B)
568                opt_io_size = 0 (0 B)
569                discard_granularity = 4294967295 (4 GiB)
570                write-cache = "auto"
571                share-rw = false
572                drive-type = "144"
573              dev: floppy, id ""
574                unit = 0 (0x0)
575                drive = "floppy0"
576                logical_block_size = 512 (512 B)
577                physical_block_size = 512 (512 B)
578                min_io_size = 0 (0 B)
579                opt_io_size = 0 (0 B)
580                discard_granularity = 4294967295 (4 GiB)
581                write-cache = "auto"
582                share-rw = false
583                drive-type = "144"
584floppy0 (NODE_NAME): TEST_DIR/t.qcow2 (qcow2)
585    Attached to:      /machine/unattached/device[N]
586    Removable device: not locked, tray closed
587    Cache mode:       writeback
588
589none0 (NODE_NAME): TEST_DIR/t.qcow2.2 (qcow2)
590    Attached to:      /machine/peripheral-anon/device[N]
591    Removable device: not locked, tray closed
592    Cache mode:       writeback
593
594ide1-cd0: [not inserted]
595    Attached to:      /machine/unattached/device[N]
596    Removable device: not locked, tray closed
597
598sd0: [not inserted]
599    Removable device: not locked, tray closed
600(qemu) quit
601
602
603Testing: -fdb TEST_DIR/t.qcow2 -drive if=none,file=TEST_DIR/t.qcow2.2 -device floppy,drive=none0
604
605          dev: isa-fdc, id ""
606            iobase = 1008 (0x3f0)
607            irq = 6 (0x6)
608            dma = 2 (0x2)
609            fdtypeA = "auto"
610            fdtypeB = "auto"
611            fallback = "288"
612            isa irq 6
613            bus: floppy-bus.0
614              type floppy-bus
615              dev: floppy, id ""
616                unit = 0 (0x0)
617                drive = "none0"
618                logical_block_size = 512 (512 B)
619                physical_block_size = 512 (512 B)
620                min_io_size = 0 (0 B)
621                opt_io_size = 0 (0 B)
622                discard_granularity = 4294967295 (4 GiB)
623                write-cache = "auto"
624                share-rw = false
625                drive-type = "144"
626              dev: floppy, id ""
627                unit = 1 (0x1)
628                drive = "floppy1"
629                logical_block_size = 512 (512 B)
630                physical_block_size = 512 (512 B)
631                min_io_size = 0 (0 B)
632                opt_io_size = 0 (0 B)
633                discard_granularity = 4294967295 (4 GiB)
634                write-cache = "auto"
635                share-rw = false
636                drive-type = "144"
637floppy1 (NODE_NAME): TEST_DIR/t.qcow2 (qcow2)
638    Attached to:      /machine/unattached/device[N]
639    Removable device: not locked, tray closed
640    Cache mode:       writeback
641
642none0 (NODE_NAME): TEST_DIR/t.qcow2.2 (qcow2)
643    Attached to:      /machine/peripheral-anon/device[N]
644    Removable device: not locked, tray closed
645    Cache mode:       writeback
646
647ide1-cd0: [not inserted]
648    Attached to:      /machine/unattached/device[N]
649    Removable device: not locked, tray closed
650
651sd0: [not inserted]
652    Removable device: not locked, tray closed
653(qemu) quit
654
655
656Testing: -fdb TEST_DIR/t.qcow2 -drive if=none,file=TEST_DIR/t.qcow2.2 -device floppy,drive=none0,unit=0
657
658          dev: isa-fdc, id ""
659            iobase = 1008 (0x3f0)
660            irq = 6 (0x6)
661            dma = 2 (0x2)
662            fdtypeA = "auto"
663            fdtypeB = "auto"
664            fallback = "288"
665            isa irq 6
666            bus: floppy-bus.0
667              type floppy-bus
668              dev: floppy, id ""
669                unit = 0 (0x0)
670                drive = "none0"
671                logical_block_size = 512 (512 B)
672                physical_block_size = 512 (512 B)
673                min_io_size = 0 (0 B)
674                opt_io_size = 0 (0 B)
675                discard_granularity = 4294967295 (4 GiB)
676                write-cache = "auto"
677                share-rw = false
678                drive-type = "144"
679              dev: floppy, id ""
680                unit = 1 (0x1)
681                drive = "floppy1"
682                logical_block_size = 512 (512 B)
683                physical_block_size = 512 (512 B)
684                min_io_size = 0 (0 B)
685                opt_io_size = 0 (0 B)
686                discard_granularity = 4294967295 (4 GiB)
687                write-cache = "auto"
688                share-rw = false
689                drive-type = "144"
690floppy1 (NODE_NAME): TEST_DIR/t.qcow2 (qcow2)
691    Attached to:      /machine/unattached/device[N]
692    Removable device: not locked, tray closed
693    Cache mode:       writeback
694
695none0 (NODE_NAME): TEST_DIR/t.qcow2.2 (qcow2)
696    Attached to:      /machine/peripheral-anon/device[N]
697    Removable device: not locked, tray closed
698    Cache mode:       writeback
699
700ide1-cd0: [not inserted]
701    Attached to:      /machine/unattached/device[N]
702    Removable device: not locked, tray closed
703
704sd0: [not inserted]
705    Removable device: not locked, tray closed
706(qemu) quit
707
708
709Testing: -fda TEST_DIR/t.qcow2 -drive if=none,file=TEST_DIR/t.qcow2.2 -device floppy,drive=none0,unit=0
710QEMU_PROG: -device floppy,drive=none0,unit=0: Floppy unit 0 is in use
711
712Testing: -fdb TEST_DIR/t.qcow2 -drive if=none,file=TEST_DIR/t.qcow2.2 -device floppy,drive=none0,unit=1
713QEMU_PROG: -device floppy,drive=none0,unit=1: Floppy unit 1 is in use
714
715
716=== Mixing -drive and -device ===
717
718Testing: -drive if=floppy,file=TEST_DIR/t.qcow2 -drive if=none,file=TEST_DIR/t.qcow2.2 -device floppy,drive=none0
719
720          dev: isa-fdc, id ""
721            iobase = 1008 (0x3f0)
722            irq = 6 (0x6)
723            dma = 2 (0x2)
724            fdtypeA = "auto"
725            fdtypeB = "auto"
726            fallback = "288"
727            isa irq 6
728            bus: floppy-bus.0
729              type floppy-bus
730              dev: floppy, id ""
731                unit = 1 (0x1)
732                drive = "none0"
733                logical_block_size = 512 (512 B)
734                physical_block_size = 512 (512 B)
735                min_io_size = 0 (0 B)
736                opt_io_size = 0 (0 B)
737                discard_granularity = 4294967295 (4 GiB)
738                write-cache = "auto"
739                share-rw = false
740                drive-type = "144"
741              dev: floppy, id ""
742                unit = 0 (0x0)
743                drive = "floppy0"
744                logical_block_size = 512 (512 B)
745                physical_block_size = 512 (512 B)
746                min_io_size = 0 (0 B)
747                opt_io_size = 0 (0 B)
748                discard_granularity = 4294967295 (4 GiB)
749                write-cache = "auto"
750                share-rw = false
751                drive-type = "144"
752floppy0 (NODE_NAME): TEST_DIR/t.qcow2 (qcow2)
753    Attached to:      /machine/unattached/device[N]
754    Removable device: not locked, tray closed
755    Cache mode:       writeback
756
757none0 (NODE_NAME): TEST_DIR/t.qcow2.2 (qcow2)
758    Attached to:      /machine/peripheral-anon/device[N]
759    Removable device: not locked, tray closed
760    Cache mode:       writeback
761
762ide1-cd0: [not inserted]
763    Attached to:      /machine/unattached/device[N]
764    Removable device: not locked, tray closed
765
766sd0: [not inserted]
767    Removable device: not locked, tray closed
768(qemu) quit
769
770
771Testing: -drive if=floppy,file=TEST_DIR/t.qcow2 -drive if=none,file=TEST_DIR/t.qcow2.2 -device floppy,drive=none0,unit=1
772
773          dev: isa-fdc, id ""
774            iobase = 1008 (0x3f0)
775            irq = 6 (0x6)
776            dma = 2 (0x2)
777            fdtypeA = "auto"
778            fdtypeB = "auto"
779            fallback = "288"
780            isa irq 6
781            bus: floppy-bus.0
782              type floppy-bus
783              dev: floppy, id ""
784                unit = 1 (0x1)
785                drive = "none0"
786                logical_block_size = 512 (512 B)
787                physical_block_size = 512 (512 B)
788                min_io_size = 0 (0 B)
789                opt_io_size = 0 (0 B)
790                discard_granularity = 4294967295 (4 GiB)
791                write-cache = "auto"
792                share-rw = false
793                drive-type = "144"
794              dev: floppy, id ""
795                unit = 0 (0x0)
796                drive = "floppy0"
797                logical_block_size = 512 (512 B)
798                physical_block_size = 512 (512 B)
799                min_io_size = 0 (0 B)
800                opt_io_size = 0 (0 B)
801                discard_granularity = 4294967295 (4 GiB)
802                write-cache = "auto"
803                share-rw = false
804                drive-type = "144"
805floppy0 (NODE_NAME): TEST_DIR/t.qcow2 (qcow2)
806    Attached to:      /machine/unattached/device[N]
807    Removable device: not locked, tray closed
808    Cache mode:       writeback
809
810none0 (NODE_NAME): TEST_DIR/t.qcow2.2 (qcow2)
811    Attached to:      /machine/peripheral-anon/device[N]
812    Removable device: not locked, tray closed
813    Cache mode:       writeback
814
815ide1-cd0: [not inserted]
816    Attached to:      /machine/unattached/device[N]
817    Removable device: not locked, tray closed
818
819sd0: [not inserted]
820    Removable device: not locked, tray closed
821(qemu) quit
822
823
824Testing: -drive if=floppy,file=TEST_DIR/t.qcow2 -drive if=none,file=TEST_DIR/t.qcow2.2 -device floppy,drive=none0,unit=0
825QEMU_PROG: -device floppy,drive=none0,unit=0: Floppy unit 0 is in use
826
827
828=== Mixing -global and -device ===
829
830Testing: -drive if=none,file=TEST_DIR/t.qcow2 -global floppy.drive=none0 -device floppy,unit=0
831
832          dev: isa-fdc, id ""
833            iobase = 1008 (0x3f0)
834            irq = 6 (0x6)
835            dma = 2 (0x2)
836            fdtypeA = "auto"
837            fdtypeB = "auto"
838            fallback = "288"
839            isa irq 6
840            bus: floppy-bus.0
841              type floppy-bus
842              dev: floppy, id ""
843                unit = 0 (0x0)
844                drive = "none0"
845                logical_block_size = 512 (512 B)
846                physical_block_size = 512 (512 B)
847                min_io_size = 0 (0 B)
848                opt_io_size = 0 (0 B)
849                discard_granularity = 4294967295 (4 GiB)
850                write-cache = "auto"
851                share-rw = false
852                drive-type = "144"
853none0 (NODE_NAME): TEST_DIR/t.qcow2 (qcow2)
854    Attached to:      /machine/peripheral-anon/device[N]
855    Removable device: not locked, tray closed
856    Cache mode:       writeback
857
858ide1-cd0: [not inserted]
859    Attached to:      /machine/unattached/device[N]
860    Removable device: not locked, tray closed
861
862sd0: [not inserted]
863    Removable device: not locked, tray closed
864(qemu) quit
865
866
867Testing: -drive if=none,file=TEST_DIR/t.qcow2 -drive if=none,file=TEST_DIR/t.qcow2.2 -global floppy.drive=none0 -device floppy,drive=none1,unit=0
868QEMU_PROG: -device floppy,drive=none1,unit=0: -global floppy.drive=... conflicts with drive=none1
869
870
871=== Attempt to use drive twice ===
872
873Testing: -drive if=none -device floppy,drive=none0 -device floppy -device floppy,drive=none0
874QEMU_PROG: -device floppy,drive=none0: Drive 'none0' is already in use by another device
875
876Testing: -drive if=none -global floppy.drive=none0 -device floppy -device floppy
877QEMU_PROG: -device floppy: can't apply global floppy.drive=none0: Drive 'none0' is already in use by another device
878
879Testing: -fda  -device floppy,drive=floppy0
880QEMU_PROG: -device floppy,drive=floppy0: Drive 'floppy0' is already in use because it has been automatically connected to another device (did you need 'if=none' in the drive options?)
881
882Testing: -fda  -global floppy.drive=floppy0
883QEMU_PROG: -global floppy.drive=... conflicts with drive=floppy0
884
885Testing: -device floppy,drive=floppy0
886QEMU_PROG: -device floppy,drive=floppy0: Property 'floppy.drive' can't find value 'floppy0'
887
888
889=== Too many floppy drives ===
890
891Testing: -drive if=floppy,file=TEST_DIR/t.qcow2 -drive if=none,file=TEST_DIR/t.qcow2.2 -drive if=none,file=TEST_DIR/t.qcow2.3 -device floppy,drive=none0 -device floppy,drive=none1
892QEMU_PROG: -device floppy,drive=none1: Can't create floppy unit 2, bus supports only 2 units
893
894
895=== Creating an empty drive with anonymous BB ===
896
897Testing: -device floppy
898
899          dev: isa-fdc, id ""
900            iobase = 1008 (0x3f0)
901            irq = 6 (0x6)
902            dma = 2 (0x2)
903            fdtypeA = "auto"
904            fdtypeB = "auto"
905            fallback = "288"
906            isa irq 6
907            bus: floppy-bus.0
908              type floppy-bus
909              dev: floppy, id ""
910                unit = 0 (0x0)
911                drive = ""
912                logical_block_size = 512 (512 B)
913                physical_block_size = 512 (512 B)
914                min_io_size = 0 (0 B)
915                opt_io_size = 0 (0 B)
916                discard_granularity = 4294967295 (4 GiB)
917                write-cache = "auto"
918                share-rw = false
919                drive-type = "288"
920
921Testing: -device floppy,drive-type=120
922
923          dev: isa-fdc, id ""
924            iobase = 1008 (0x3f0)
925            irq = 6 (0x6)
926            dma = 2 (0x2)
927            fdtypeA = "auto"
928            fdtypeB = "auto"
929            fallback = "288"
930            isa irq 6
931            bus: floppy-bus.0
932              type floppy-bus
933              dev: floppy, id ""
934                unit = 0 (0x0)
935                drive = ""
936                logical_block_size = 512 (512 B)
937                physical_block_size = 512 (512 B)
938                min_io_size = 0 (0 B)
939                opt_io_size = 0 (0 B)
940                discard_granularity = 4294967295 (4 GiB)
941                write-cache = "auto"
942                share-rw = false
943                drive-type = "120"
944
945Testing: -device floppy,drive-type=144
946
947          dev: isa-fdc, id ""
948            iobase = 1008 (0x3f0)
949            irq = 6 (0x6)
950            dma = 2 (0x2)
951            fdtypeA = "auto"
952            fdtypeB = "auto"
953            fallback = "288"
954            isa irq 6
955            bus: floppy-bus.0
956              type floppy-bus
957              dev: floppy, id ""
958                unit = 0 (0x0)
959                drive = ""
960                logical_block_size = 512 (512 B)
961                physical_block_size = 512 (512 B)
962                min_io_size = 0 (0 B)
963                opt_io_size = 0 (0 B)
964                discard_granularity = 4294967295 (4 GiB)
965                write-cache = "auto"
966                share-rw = false
967                drive-type = "144"
968
969Testing: -device floppy,drive-type=288
970
971          dev: isa-fdc, id ""
972            iobase = 1008 (0x3f0)
973            irq = 6 (0x6)
974            dma = 2 (0x2)
975            fdtypeA = "auto"
976            fdtypeB = "auto"
977            fallback = "288"
978            isa irq 6
979            bus: floppy-bus.0
980              type floppy-bus
981              dev: floppy, id ""
982                unit = 0 (0x0)
983                drive = ""
984                logical_block_size = 512 (512 B)
985                physical_block_size = 512 (512 B)
986                min_io_size = 0 (0 B)
987                opt_io_size = 0 (0 B)
988                discard_granularity = 4294967295 (4 GiB)
989                write-cache = "auto"
990                share-rw = false
991                drive-type = "288"
992
993
994=== Try passing different drive size with image ===
995
996Testing: -drive if=none,file=TEST_DIR/t.qcow2 -device floppy,drive=none0,drive-type=120
997
998          dev: isa-fdc, id ""
999            iobase = 1008 (0x3f0)
1000            irq = 6 (0x6)
1001            dma = 2 (0x2)
1002            fdtypeA = "auto"
1003            fdtypeB = "auto"
1004            fallback = "288"
1005            isa irq 6
1006            bus: floppy-bus.0
1007              type floppy-bus
1008              dev: floppy, id ""
1009                unit = 0 (0x0)
1010                drive = "none0"
1011                logical_block_size = 512 (512 B)
1012                physical_block_size = 512 (512 B)
1013                min_io_size = 0 (0 B)
1014                opt_io_size = 0 (0 B)
1015                discard_granularity = 4294967295 (4 GiB)
1016                write-cache = "auto"
1017                share-rw = false
1018                drive-type = "120"
1019none0 (NODE_NAME): TEST_DIR/t.qcow2 (qcow2)
1020    Attached to:      /machine/peripheral-anon/device[N]
1021    Removable device: not locked, tray closed
1022    Cache mode:       writeback
1023
1024ide1-cd0: [not inserted]
1025    Attached to:      /machine/unattached/device[N]
1026    Removable device: not locked, tray closed
1027
1028sd0: [not inserted]
1029    Removable device: not locked, tray closed
1030(qemu) quit
1031
1032
1033Testing: -drive if=none,file=TEST_DIR/t.qcow2 -device floppy,drive=none0,drive-type=288
1034
1035          dev: isa-fdc, id ""
1036            iobase = 1008 (0x3f0)
1037            irq = 6 (0x6)
1038            dma = 2 (0x2)
1039            fdtypeA = "auto"
1040            fdtypeB = "auto"
1041            fallback = "288"
1042            isa irq 6
1043            bus: floppy-bus.0
1044              type floppy-bus
1045              dev: floppy, id ""
1046                unit = 0 (0x0)
1047                drive = "none0"
1048                logical_block_size = 512 (512 B)
1049                physical_block_size = 512 (512 B)
1050                min_io_size = 0 (0 B)
1051                opt_io_size = 0 (0 B)
1052                discard_granularity = 4294967295 (4 GiB)
1053                write-cache = "auto"
1054                share-rw = false
1055                drive-type = "288"
1056none0 (NODE_NAME): TEST_DIR/t.qcow2 (qcow2)
1057    Attached to:      /machine/peripheral-anon/device[N]
1058    Removable device: not locked, tray closed
1059    Cache mode:       writeback
1060
1061ide1-cd0: [not inserted]
1062    Attached to:      /machine/unattached/device[N]
1063    Removable device: not locked, tray closed
1064
1065sd0: [not inserted]
1066    Removable device: not locked, tray closed
1067(qemu) quit
1068
1069
1070
1071=== Try passing different block sizes ===
1072
1073Testing: -drive if=none,file=TEST_DIR/t.qcow2 -device floppy,drive=none0,logical_block_size=512
1074
1075          dev: isa-fdc, id ""
1076            iobase = 1008 (0x3f0)
1077            irq = 6 (0x6)
1078            dma = 2 (0x2)
1079            fdtypeA = "auto"
1080            fdtypeB = "auto"
1081            fallback = "288"
1082            isa irq 6
1083            bus: floppy-bus.0
1084              type floppy-bus
1085              dev: floppy, id ""
1086                unit = 0 (0x0)
1087                drive = "none0"
1088                logical_block_size = 512 (512 B)
1089                physical_block_size = 512 (512 B)
1090                min_io_size = 0 (0 B)
1091                opt_io_size = 0 (0 B)
1092                discard_granularity = 4294967295 (4 GiB)
1093                write-cache = "auto"
1094                share-rw = false
1095                drive-type = "144"
1096none0 (NODE_NAME): TEST_DIR/t.qcow2 (qcow2)
1097    Attached to:      /machine/peripheral-anon/device[N]
1098    Removable device: not locked, tray closed
1099    Cache mode:       writeback
1100
1101ide1-cd0: [not inserted]
1102    Attached to:      /machine/unattached/device[N]
1103    Removable device: not locked, tray closed
1104
1105sd0: [not inserted]
1106    Removable device: not locked, tray closed
1107(qemu) quit
1108
1109
1110Testing: -drive if=none,file=TEST_DIR/t.qcow2 -device floppy,drive=none0,physical_block_size=512
1111
1112          dev: isa-fdc, id ""
1113            iobase = 1008 (0x3f0)
1114            irq = 6 (0x6)
1115            dma = 2 (0x2)
1116            fdtypeA = "auto"
1117            fdtypeB = "auto"
1118            fallback = "288"
1119            isa irq 6
1120            bus: floppy-bus.0
1121              type floppy-bus
1122              dev: floppy, id ""
1123                unit = 0 (0x0)
1124                drive = "none0"
1125                logical_block_size = 512 (512 B)
1126                physical_block_size = 512 (512 B)
1127                min_io_size = 0 (0 B)
1128                opt_io_size = 0 (0 B)
1129                discard_granularity = 4294967295 (4 GiB)
1130                write-cache = "auto"
1131                share-rw = false
1132                drive-type = "144"
1133none0 (NODE_NAME): TEST_DIR/t.qcow2 (qcow2)
1134    Attached to:      /machine/peripheral-anon/device[N]
1135    Removable device: not locked, tray closed
1136    Cache mode:       writeback
1137
1138ide1-cd0: [not inserted]
1139    Attached to:      /machine/unattached/device[N]
1140    Removable device: not locked, tray closed
1141
1142sd0: [not inserted]
1143    Removable device: not locked, tray closed
1144(qemu) quit
1145
1146
1147Testing: -drive if=none,file=TEST_DIR/t.qcow2 -device floppy,drive=none0,logical_block_size=4096
1148QEMU_PROG: -device floppy,drive=none0,logical_block_size=4096: logical_block_size > physical_block_size not supported
1149
1150Testing: -drive if=none,file=TEST_DIR/t.qcow2 -device floppy,drive=none0,physical_block_size=1024
1151QEMU_PROG: -device floppy,drive=none0,physical_block_size=1024: Physical and logical block size must be 512 for floppy
1152
1153
1154=== Writethrough caching ===
1155    Cache mode:       writeback
1156    Cache mode:       writeback
1157    Cache mode:       writethrough
1158*** done
1159