Re: [Qemu-devel] [PATCH RESEND 15/50] block: Fail requests to empty BlockBackend

2015-01-27 Thread Eric Blake
On 01/27/2015 12:45 PM, 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 d

[Qemu-devel] [PATCH RESEND 15/50] block: Fail requests to empty BlockBackend

2015-01-27 Thread Max Reitz
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 Block