eject_media: Fix blockdev open tray non cdrom with virtio-blk
Since the argument "id" in qmp command "blockdev-open-tray" is
different between virtio-scsi and virtio-blk for the non-removable
media, actually it depends on the "qdev" value from the command
"query-block".
Signed-off-by: NYongxue Hong <yhong@redhat.com>
Showing
想要评论请 注册 或 登录