Skip to content
Commit 6cacd265 authored by Fam Zheng's avatar Fam Zheng Committed by Michael Roth
Browse files

block: Add bdrv_get_block_status_above



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: default avatarFam Zheng <famz@redhat.com>
Signed-off-by: default avatarStefan Hajnoczi <stefanha@redhat.com>
(cherry picked from commit ba3f0e25)
Conflicts:
	block/io.c

* applied manually to avoid dependency on 61007b31
Signed-off-by: default avatarMichael Roth <mdroth@linux.vnet.ibm.com>
parent e8248a5a
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment