Re: [Qemu-block] [PATCH v5 19/38] block: Fail requests to empty BlockBackend

2015-09-22 Thread Max Reitz
On 22.09.2015 16:30, Kevin Wolf wrote: > Am 18.09.2015 um 17:22 hat Max Reitz geschrieben: >> 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

Re: [Qemu-block] [PATCH v5 19/38] block: Fail requests to empty BlockBackend

2015-09-22 Thread Kevin Wolf
Am 18.09.2015 um 17:22 hat Max Reitz geschrieben: > 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

[Qemu-block] [PATCH v5 19/38] block: Fail requests to empty BlockBackend

2015-09-18 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