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 BBRS). > > Signed-off-by: Max Reitz > --- > block/block-backend.c | 12 ++++++++++-- > 1 file changed, 10 insertions(+), 2 deletions(-) > Reviewed-by: Eric Blake -- Eric Blake eblake redhat com +1-919-301-3266 Libvirt virtualization library http://libvirt.org