[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [Qemu-block] [PATCH 2/4] blockdev: Fix 'change' for slo
From: |
Alberto Garcia |
Subject: |
Re: [Qemu-devel] [Qemu-block] [PATCH 2/4] blockdev: Fix 'change' for slot devices |
Date: |
Mon, 18 Jan 2016 11:49:25 +0100 |
User-agent: |
Notmuch/0.13.2 (http://notmuchmail.org) Emacs/23.2.1 (i486-pc-linux-gnu) |
On Tue 12 Jan 2016 04:47:52 PM CET, Max Reitz wrote:
> 'change' and related operations did not work when used on guest devices
> featuring removable media but no actual tray, because
> blk_dev_is_tray_open() always returned false for them and the
> blockdev-{insert,remove}-medium commands required it to return true.
>
> Fix this by making blockdev-{insert,remove}-medium work on tray-less
> devices. Also, blockdev-{open,close}-tray are now explicitly no-ops when
> invoked on such devices, and blk_dev_change_media_cb() is instead
> called by blockdev-{insert,remove}-medium (for tray-less devices only).
>
> Reported-by: Peter Maydell <address@hidden>
> Cc: qemu-stable <address@hidden>
> Signed-off-by: Max Reitz <address@hidden>
Reviewed-by: Alberto Garcia <address@hidden>
Berto
- [Qemu-devel] [PATCH 0/4] blockdev: Fix 'change' for slot devices, Max Reitz, 2016/01/12
- [Qemu-devel] [PATCH 1/4] block: Add blk_dev_has_tray(), Max Reitz, 2016/01/12
- [Qemu-devel] [PATCH 2/4] blockdev: Fix 'change' for slot devices, Max Reitz, 2016/01/12
- [Qemu-devel] [PATCH 4/4] block/qapi: Emit tray_open only if there is a tray, Max Reitz, 2016/01/12
- [Qemu-devel] [PATCH 3/4] Revert "hw/block/fdc: Implement tray status", Max Reitz, 2016/01/12
- Re: [Qemu-devel] [PATCH 0/4] blockdev: Fix 'change' for slot devices, Peter Maydell, 2016/01/15