mirror of https://github.com/xemu-project/xemu.git
block: fix block tray status
The tray status should change also if you eject empty block device. Signed-off-by: Pavel Hrdina <phrdina@redhat.com> Signed-off-by: Kevin Wolf <kwolf@redhat.com>
This commit is contained in:
parent
514f21a5d4
commit
9ca111544c
4
block.c
4
block.c
|
@ -897,10 +897,10 @@ void bdrv_close(BlockDriverState *bs)
|
||||||
bdrv_delete(bs->file);
|
bdrv_delete(bs->file);
|
||||||
bs->file = NULL;
|
bs->file = NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
bdrv_dev_change_media_cb(bs, false);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
bdrv_dev_change_media_cb(bs, false);
|
||||||
|
|
||||||
/*throttling disk I/O limits*/
|
/*throttling disk I/O limits*/
|
||||||
if (bs->io_limits_enabled) {
|
if (bs->io_limits_enabled) {
|
||||||
bdrv_io_limits_disable(bs);
|
bdrv_io_limits_disable(bs);
|
||||||
|
|
Loading…
Reference in New Issue