Re: [Qemu-devel] [PATCH 06/50] block: Add blk_is_available()

2015-01-27 Thread Max Reitz
On 2015-01-27 at 14:15, Eric Blake wrote: On 01/26/2015 09:02 AM, Max Reitz wrote: blk_is_available() returns true iff the BDS is inserted (which means blk_bs() is not NULL and bdrv_is_inserted() returns true) and if the tray of the guest device is closed. blk_is_inserted() is changed to return

Re: [Qemu-devel] [PATCH 06/50] block: Add blk_is_available()

2015-01-27 Thread Eric Blake
On 01/26/2015 09:02 AM, Max Reitz wrote: > blk_is_available() returns true iff the BDS is inserted (which means > blk_bs() is not NULL and bdrv_is_inserted() returns true) and if the > tray of the guest device is closed. > > blk_is_inserted() is changed to return true only if blk_bs() is not > NUL

[Qemu-devel] [PATCH 06/50] block: Add blk_is_available()

2015-01-26 Thread Max Reitz
blk_is_available() returns true iff the BDS is inserted (which means blk_bs() is not NULL and bdrv_is_inserted() returns true) and if the tray of the guest device is closed. blk_is_inserted() is changed to return true only if blk_bs() is not NULL. Signed-off-by: Max Reitz --- block/block-backen