Skip to content
  • Kevin Wolf's avatar
    2d76e724
    block: Add qdev ID to DEVICE_TRAY_MOVED · 2d76e724
    Kevin Wolf authored
    
    
    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: default avatarKevin Wolf <kwolf@redhat.com>
    Reviewed-by: default avatarMax Reitz <mreitz@redhat.com>
    2d76e724
    block: Add qdev ID to DEVICE_TRAY_MOVED
    Kevin Wolf authored
    
    
    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: default avatarKevin Wolf <kwolf@redhat.com>
    Reviewed-by: default avatarMax Reitz <mreitz@redhat.com>
Loading