aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorKevin Wolf <kwolf@redhat.com>2015-09-17 13:18:23 +0200
committerKevin Wolf <kwolf@redhat.com>2015-10-16 15:34:29 +0200
commitd42a8a935b8b2d567331fffa13a70918352668bb (patch)
treebfa20af1881dc6be090922b15fb12c88a8981dd9 /include
parenta2d6190048d01c7012ab4fd6a2558f435b7b2fe8 (diff)
downloadqemu-d42a8a935b8b2d567331fffa13a70918352668bb.zip
qemu-d42a8a935b8b2d567331fffa13a70918352668bb.tar.gz
qemu-d42a8a935b8b2d567331fffa13a70918352668bb.tar.bz2
block: Introduce parents list
Signed-off-by: Kevin Wolf <kwolf@redhat.com> Reviewed-by: Max Reitz <mreitz@redhat.com> Reviewed-by: Fam Zheng <famz@redhat.com> Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
Diffstat (limited to 'include')
-rw-r--r--include/block/block_int.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/block/block_int.h b/include/block/block_int.h
index cfcae52..52ea7c0 100644
--- a/include/block/block_int.h
+++ b/include/block/block_int.h
@@ -339,6 +339,7 @@ struct BdrvChild {
BlockDriverState *bs;
const BdrvChildRole *role;
QLIST_ENTRY(BdrvChild) next;
+ QLIST_ENTRY(BdrvChild) next_parent;
};
/*
@@ -445,6 +446,7 @@ struct BlockDriverState {
* parent node of this node. */
BlockDriverState *inherits_from;
QLIST_HEAD(, BdrvChild) children;
+ QLIST_HEAD(, BdrvChild) parents;
QDict *options;
BlockdevDetectZeroesOptions detect_zeroes;