summaryrefslogtreecommitdiffstats
path: root/qapi
diff options
context:
space:
mode:
authorFam Zheng2015-06-08 07:56:07 +0200
committerStefan Hajnoczi2015-07-02 11:03:50 +0200
commitba3f0e2545c365ebe1dbddb0e53058710d41881e (patch)
tree39315c57080955d17bb4be1ec3053faec12a842c /qapi
parenttimer: Use a single definition of NSEC_PER_SEC for the whole codebase (diff)
downloadqemu-ba3f0e2545c365ebe1dbddb0e53058710d41881e.tar.gz
qemu-ba3f0e2545c365ebe1dbddb0e53058710d41881e.tar.xz
qemu-ba3f0e2545c365ebe1dbddb0e53058710d41881e.zip
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: Fam Zheng <famz@redhat.com> Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
Diffstat (limited to 'qapi')
0 files changed, 0 insertions, 0 deletions