Commit 9ca11154 authored by Pavel Hrdina's avatar Pavel Hrdina Committed by Kevin Wolf

block: fix block tray status

The tray status should change also if you eject empty block device.
Signed-off-by: default avatarPavel Hrdina <>
Signed-off-by: default avatarKevin Wolf <>
parent 514f21a5
......@@ -897,10 +897,10 @@ void bdrv_close(BlockDriverState *bs)
bs->file = NULL;
bdrv_dev_change_media_cb(bs, false);
bdrv_dev_change_media_cb(bs, false);
/*throttling disk I/O limits*/
if (bs->io_limits_enabled) {
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment