Re: [Qemu-devel] [PATCH RESEND 44/50] block: Inquire tray state before tray-moved events

2015-01-28 Thread Eric Blake
On 01/27/2015 12:46 PM, Max Reitz wrote: > 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 bef

[Qemu-devel] [PATCH RESEND 44/50] block: Inquire tray state before tray-moved events

2015-01-27 Thread Max Reitz
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