block: Leave enforcing tray lock to device models
authorMarkus Armbruster <armbru@redhat.com>
Tue, 6 Sep 2011 16:58:45 +0000 (18:58 +0200)
committerKevin Wolf <kwolf@redhat.com>
Mon, 12 Sep 2011 13:17:20 +0000 (15:17 +0200)
commitfdec4404ddfaf9e121bef84eac1303a8a0e47d75
treeea7637b6abf1510c1ff22baf1b495536f71a5b40
parent81b1008d50829fdcbe79aa67fa1113bb00a787d6
block: Leave enforcing tray lock to device models

The device model knows best when to accept the guest's eject command.
No need to detour through the block layer.

bdrv_eject() can't fail anymore.  Make it void.

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