summaryrefslogtreecommitdiff
path: root/block.h
diff options
context:
space:
mode:
authorJeff Cody <jcody@redhat.com>2012-09-27 13:29:15 -0400
committerKevin Wolf <kwolf@redhat.com>2012-09-28 18:23:44 +0200
commit79fac5680d3680c9fb43d14a8d4e39ced25530f8 (patch)
treef3f04e78df6c336f55c8d0fccc1847540fffc2de /block.h
parent9abf2dbaf6ae990c498ec0245986bddcd6b013ea (diff)
downloadqemu-79fac5680d3680c9fb43d14a8d4e39ced25530f8.tar.gz
block: helper function, to find the base image of a chain
This is a simple helper function, that will return the base image of a given image chain. Signed-off-by: Jeff Cody <jcody@redhat.com> Reviewed-by: Eric Blake <eblake@redhat.com> Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Diffstat (limited to 'block.h')
-rw-r--r--block.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/block.h b/block.h
index 8c9b4245d4..e9249c44e6 100644
--- a/block.h
+++ b/block.h
@@ -207,6 +207,7 @@ int bdrv_drop_intermediate(BlockDriverState *active, BlockDriverState *top,
BlockDriverState *base);
BlockDriverState *bdrv_find_overlay(BlockDriverState *active,
BlockDriverState *bs);
+BlockDriverState *bdrv_find_base(BlockDriverState *bs);
typedef struct BdrvCheckResult {