Re: [Qemu-devel] [PATCH RESEND 14/50] block: Make some BB functions fall back to BBRS

2015-01-27 Thread Eric Blake
On 01/27/2015 12:45 PM, Max Reitz wrote: > If there is no BDS tree attached to a BlockBackend, functions that can > do so should fall back to the BlockBackendRootState structure (which are > blk_is_read_only() and blk_get_flags(), because the read-only status and > the "open flags" are part of the

[Qemu-devel] [PATCH RESEND 14/50] block: Make some BB functions fall back to BBRS

2015-01-27 Thread Max Reitz
If there is no BDS tree attached to a BlockBackend, functions that can do so should fall back to the BlockBackendRootState structure (which are blk_is_read_only() and blk_get_flags(), because the read-only status and the "open flags" are part of the BBRS). Signed-off-by: Max Reitz --- block/bloc