]> git.proxmox.com Git - mirror_qemu.git/commit
fdc: add drive type option
authorJohn Snow <jsnow@redhat.com>
Fri, 22 Jan 2016 20:51:01 +0000 (15:51 -0500)
committerJohn Snow <jsnow@redhat.com>
Mon, 25 Jan 2016 19:35:23 +0000 (14:35 -0500)
commitfff4687b9ea7da910bb503d5d3d276868f0a1d0f
tree4d3b2deed3d6626cede7c7f83d56c5064b8f6ddc
parenta73275dd6fc3bfda33165bebc28e0c33c20cb0a0
fdc: add drive type option

This patch adds a new explicit Floppy Drive Type option. The existing
behavior in QEMU is to automatically guess a drive type based on the
media inserted, or if a diskette is not present, arbitrarily assign one.

This behavior can be described as "auto." This patch adds the option
to pick an explicit behavior: 120, 144, 288 or none. The new "auto"
option is intended to mimic current behavior, while the other types
pick one explicitly.

Set the type given by the CLI during fd_init. If the type remains the
default (auto), we'll attempt to scan an inserted diskette if present
to determine a type. If auto is selected but no diskette is present,
we fall back to a predetermined default (currently 1.44MB to match
legacy QEMU behavior.)

Reviewed-by: Eric Blake <eblake@redhat.com>
Signed-off-by: John Snow <jsnow@redhat.com>
Message-id: 1453495865-9649-9-git-send-email-jsnow@redhat.com
hw/block/fdc.c