Re: [Qemu-devel] [PATCH 1/4] block: Add blk_dev_has_tray()

2016-01-15 Thread Eric Blake
On 01/12/2016 08:47 AM, Max Reitz wrote: > Pull out the check whether a block device has a tray from > blk_dev_is_tray_open() into an own function so both attributes (whether s.an own/its own/ > there is a tray vs. whether that tray is open) can be queried > independently. > > Cc: qemu-stable >

[Qemu-devel] [PATCH 1/4] block: Add blk_dev_has_tray()

2016-01-12 Thread Max Reitz
Pull out the check whether a block device has a tray from blk_dev_is_tray_open() into an own function so both attributes (whether there is a tray vs. whether that tray is open) can be queried independently. Cc: qemu-stable Signed-off-by: Max Reitz --- block/block-backend.c | 10 +-