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