mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-02 23:33:54 -06:00
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>
This commit is contained in:
parent
a2d6190048
commit
d42a8a935b
2 changed files with 5 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue