]> git.proxmox.com Git - mirror_qemu.git/commit - block.c
block: Introduce bdrv_replace_child()
authorKevin Wolf <kwolf@redhat.com>
Mon, 23 May 2016 13:52:26 +0000 (15:52 +0200)
committerKevin Wolf <kwolf@redhat.com>
Wed, 25 May 2016 17:04:10 +0000 (19:04 +0200)
commite9740bc6d466df53efe4b8f797e99d16212799d0
treef3879f7fd401b7d03ca53414a6ea4e8508c26d18
parent109525ad6a2f5d720ee0802df7ab1e3decbeeb21
block: Introduce bdrv_replace_child()

This adds a common function that is called when attaching a new child to
a parent, removing a child from a parent and when reconfiguring the
graph so that an existing child points to a different node now.

Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Reviewed-by: Fam Zheng <famz@redhat.com>
block.c