]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemu: hotplug: wait for the tray to eject only for drives with a tray
authorPeter Krempa <pkrempa@redhat.com>
Thu, 19 May 2016 13:30:12 +0000 (15:30 +0200)
committerCole Robinson <crobinso@redhat.com>
Thu, 23 Jun 2016 20:06:46 +0000 (16:06 -0400)
commit5befc944a90e4e7af779ecc6ebcc440e3326b1ca
treecacc48da330b6a2edc06567c0ae50a97ac756855
parent2c1bff5accfeb6a71090fa4bfba5a8e3c7df84d2
qemu: hotplug: wait for the tray to eject only for drives with a tray

Use the detected tray presence flag to trigger the tray waiting code
only if the given storage device in qemu reports to have a tray.

This is necessary as the floppy device lost it's tray as of qemu commit:

commit abb3e55b5b718d6392441f56ba0729a62105ac56
Author: Max Reitz <mreitz@redhat.com>
Date:   Fri Jan 29 20:49:12 2016 +0100

    Revert "hw/block/fdc: Implement tray status"

(cherry picked from commit 72a7ff6b507bcf389cc493ac0ba07d32de266d6e)
src/qemu/qemu_hotplug.c