• F
    block: Add bdrv_get_block_status_above · ba3f0e25
    Fam Zheng 提交于
    Like bdrv_is_allocated_above, this function follows the backing chain until seeing
    BDRV_BLOCK_ALLOCATED.  Base is not included.
    
    Reimplement bdrv_is_allocated on top.
    
    [Initialized bdrv_co_get_block_status_above() ret to 0 to silence
    mingw64 compiler warning about the unitialized variable.  assert(bs !=
    base) prevents that case but I suppose the program could be compiled
    with -DNDEBUG.
    --Stefan]
    Signed-off-by: NFam Zheng <famz@redhat.com>
    Signed-off-by: NStefan Hajnoczi <stefanha@redhat.com>
    ba3f0e25
block.h 25.7 KB