qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] [PATCH v2 16/37] block: Fail requests to empty BlockBac


From: Max Reitz
Subject: Re: [Qemu-devel] [PATCH v2 16/37] block: Fail requests to empty BlockBackend
Date: Wed, 25 Feb 2015 13:18:37 -0500
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.4.0

On 2015-02-09 at 12:11, Max Reitz wrote:
If there is no BlockDriverState in a BlockBackend or if the tray of the
guest device is open, fail all requests (where that is possible) with
-ENOMEDIUM.

The reason the status of the guest device is taken into account is
because once the guest device's tray is opened, any request on the same
BlockBackend as the guest uses should fail. If the BDS tree is supposed
to be usable even after ejecting it from the guest, a different
BlockBackend must be used.

Signed-off-by: Max Reitz <address@hidden>
Reviewed-by: Eric Blake <address@hidden>
---
  block/block-backend.c | 47 ++++++++++++++++++++++++++++++++++++++++++++++-
  1 file changed, 46 insertions(+), 1 deletion(-)

Note that this patch needs to be amended to accommodate for https://github.com/stefanha/qemu/commit/17b10170718f8b7cdaed225da4b9c473996cf250.

Max



reply via email to

[Prev in Thread] Current Thread [Next in Thread]