summaryrefslogtreecommitdiffstats
path: root/qapi-schema.json
diff options
context:
space:
mode:
authorMax Reitz2015-10-26 21:39:14 +0100
committerKevin Wolf2015-11-11 16:22:47 +0100
commitf1f57066573e832438cd87600310589fa9cee202 (patch)
tree92da804455cd80fde600ce3b319315dcb8203cb6 /qapi-schema.json
parentblockdev: Implement change with basic operations (diff)
downloadqemu-f1f57066573e832438cd87600310589fa9cee202.tar.gz
qemu-f1f57066573e832438cd87600310589fa9cee202.tar.xz
qemu-f1f57066573e832438cd87600310589fa9cee202.zip
block: Inquire tray state before tray-moved events
blk_dev_change_media_cb() is called for all potential tray movements; however, it is possible to request closing the tray but nothing actually happening (on a floppy disk drive without a medium). Thus, the actual tray status should be inquired before sending a tray-moved event (and an event should be sent whenever the status changed). Checking @load is now superfluous; it was necessary because it was possible to change a medium without having explicitly opened the tray and closed it again (or it might have been possible, at least). This is no longer possible, though. Signed-off-by: Max Reitz <mreitz@redhat.com> Reviewed-by: Eric Blake <eblake@redhat.com> Reviewed-by: Kevin Wolf <kwolf@redhat.com> Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Diffstat (limited to 'qapi-schema.json')
0 files changed, 0 insertions, 0 deletions