diff options
author | Markus Armbruster <armbru@redhat.com> | 2011-09-06 18:58:45 +0200 |
---|---|---|
committer | Kevin Wolf <kwolf@redhat.com> | 2011-09-12 15:17:20 +0200 |
commit | fdec4404ddfaf9e121bef84eac1303a8a0e47d75 (patch) | |
tree | ea7637b6abf1510c1ff22baf1b495536f71a5b40 /block.h | |
parent | 81b1008d50829fdcbe79aa67fa1113bb00a787d6 (diff) | |
download | qemu-fdec4404ddfaf9e121bef84eac1303a8a0e47d75.zip qemu-fdec4404ddfaf9e121bef84eac1303a8a0e47d75.tar.gz qemu-fdec4404ddfaf9e121bef84eac1303a8a0e47d75.tar.bz2 |
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>
Diffstat (limited to 'block.h')
-rw-r--r-- | block.h | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -208,7 +208,7 @@ int bdrv_is_inserted(BlockDriverState *bs); int bdrv_media_changed(BlockDriverState *bs); int bdrv_is_locked(BlockDriverState *bs); void bdrv_set_locked(BlockDriverState *bs, int locked); -int bdrv_eject(BlockDriverState *bs, int eject_flag); +void bdrv_eject(BlockDriverState *bs, int eject_flag); void bdrv_get_format(BlockDriverState *bs, char *buf, int buf_size); BlockDriverState *bdrv_find(const char *name); BlockDriverState *bdrv_next(BlockDriverState *bs); |