Re: [Qemu-block] [PATCH v3 05/38] block: Add blk_is_available()

2015-06-04 Thread Alberto Garcia
On Wed 03 Jun 2015 09:43:46 PM CEST, 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

[Qemu-block] [PATCH v3 05/38] block: Add blk_is_available()

2015-06-03 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 mre...@redhat.com