• K
    block: Add qdev ID to DEVICE_TRAY_MOVED · 2d76e724
    Kevin Wolf 提交于
    The event currently only contains the BlockBackend name. However, with
    anonymous BlockBackends, this is always the empty string. Add the qdev
    ID (or if none was given, the QOM path) so that the user can still see
    which device caused the event.
    
    Event generation has to be moved from bdrv_eject() to the BlockBackend
    because the BDS doesn't know the attached device, but that's easy
    because blk_eject() is the only user of it.
    Signed-off-by: NKevin Wolf <kwolf@redhat.com>
    Reviewed-by: NMax Reitz <mreitz@redhat.com>
    2d76e724
block.c 116.1 KB