]> git.proxmox.com Git - mirror_qemu.git/commit - block/vmdk.c
block: Convert bs->backing_hd to BdrvChild
authorKevin Wolf <kwolf@redhat.com>
Wed, 17 Jun 2015 12:55:21 +0000 (14:55 +0200)
committerKevin Wolf <kwolf@redhat.com>
Fri, 16 Oct 2015 13:34:29 +0000 (15:34 +0200)
commit760e006384ecd5b8b8b1b91b5c85ff8fdcb3a21f
tree506ef3c27944a2f97069327493f875a2def3d90a
parentb26e90f56ad3a494ee6337d2075f4dc55b62b3c6
block: Convert bs->backing_hd to BdrvChild

This is the final step in converting all of the BlockDriverState
pointers that block drivers use to BdrvChild.

After this patch, bs->children contains the full list of child nodes
that are referenced by a given BDS, and these children are only
referenced through BdrvChild, so that updating the pointer in there is
enough for changing edges in the graph.

Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Reviewed-by: Alberto Garcia <berto@igalia.com>
Reviewed-by: Max Reitz <mreitz@redhat.com>
Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
14 files changed:
block.c
block/io.c
block/mirror.c
block/qapi.c
block/qcow.c
block/qcow2-cluster.c
block/qcow2.c
block/qed.c
block/stream.c
block/vmdk.c
block/vvfat.c
blockdev.c
include/block/block_int.h
qemu-img.c