Re: [Qemu-devel] [PATCH v3 18/38] block: Fail requests to empty BlockBackend

2015-06-03 Thread Eric Blake
On 06/03/2015 01:43 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 v3 18/38] block: Fail requests to empty BlockBackend

2015-06-03 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