fdc: add disk field
commit16c1e3ece4052ebeb2fdf3b6560cca431d0359b9
authorJohn Snow <jsnow@redhat.com>
Fri, 22 Jan 2016 20:50:57 +0000 (22 15:50 -0500)
committerJohn Snow <jsnow@redhat.com>
Mon, 25 Jan 2016 19:35:23 +0000 (25 14:35 -0500)
treee93f1680a86698195ca9798076344b996e6d79b5
parent2da44dd0c60488727e9ca429ec1480e0968d0ca1
fdc: add disk field

Currently, 'drive' is used both to represent the current diskette
type as well as the current drive type.

This patch adds a 'disk' field that is updated explicitly to match
the type of the disk.

As of this patch, disk and drive are always the same, but forthcoming
patches to change the behavior of pick_geometry will invalidate this
assumption.

disk does not need to be migrated because it is not user-visible state
nor is it currently used for any calculations. It is purely informative,
and will be rebuilt automatically via fd_revalidate on the new host.

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