]> git.proxmox.com Git - mirror_qemu.git/commit - block/mirror.c
block/mirror: Use source as a BdrvChild
authorMax Reitz <mreitz@redhat.com>
Wed, 13 Jun 2018 18:18:14 +0000 (20:18 +0200)
committerMax Reitz <mreitz@redhat.com>
Mon, 18 Jun 2018 15:04:54 +0000 (17:04 +0200)
commit138f9fffb809451ef80f5be4647558b72f2339ad
treefc6b685dde3f16bdaf95c8365e2d0a787595e4db
parent1181e19a6d6986a08b889a32438d0ceeee9b2ef3
block/mirror: Use source as a BdrvChild

With this, the mirror_top_bs is no longer just a technically required
node in the BDS graph but actually represents the block job operation.

Also, drop MirrorBlockJob.source, as we can reach it through
mirror_top_bs->backing.

Signed-off-by: Max Reitz <mreitz@redhat.com>
Reviewed-by: Fam Zheng <famz@redhat.com>
Reviewed-by: Alberto Garcia <berto@igalia.com>
Message-id: 20180613181823.13618-6-mreitz@redhat.com
Signed-off-by: Max Reitz <mreitz@redhat.com>
block/mirror.c