OSDN Git Service

ide/atapi scsi-disk: Make monitor eject -f, then change work
authorMarkus Armbruster <armbru@redhat.com>
Tue, 6 Sep 2011 16:59:00 +0000 (18:59 +0200)
committerKevin Wolf <kwolf@redhat.com>
Mon, 12 Sep 2011 13:17:22 +0000 (15:17 +0200)
commit25ad22bc4e9c946df694fa7343027b1050b2946b
tree40653ee590c807635b36dcfb895471ef188b1b8f
parent7d4b4ba5c2bae99d44f265884b567ae63947bb4a
ide/atapi scsi-disk: Make monitor eject -f, then change work

change fails while the tray is locked by the guest.  eject -f forces
it open and removes any media.  Unfortunately, the tray closes again
instantly.  Since the lock remains as it is, there is no way to insert
another medium unless the guest voluntarily unlocks.

Fix by leaving the tray open after monitor eject.

Signed-off-by: Markus Armbruster <armbru@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
blockdev.c
hw/ide/core.c
hw/scsi-disk.c