mirror: Resize active commit base in mirror_run()
commitbecc347e1ca6884b4bc74a0572d3206bee7fec13
authorKevin Wolf <kwolf@redhat.com>
Fri, 17 Feb 2017 10:11:28 +0000 (17 11:11 +0100)
committerKevin Wolf <kwolf@redhat.com>
Fri, 24 Feb 2017 15:09:23 +0000 (24 16:09 +0100)
tree1d226bfb0b59b36b8d91638b46847c7e99ec3cfd
parent70b27f364315e4ad4cb77cdebe530e5bdbdf3dcb
mirror: Resize active commit base in mirror_run()

This is more consistent with the commit block job, and it moves the code
to a place where we already have the necessary BlockBackends to resize
the base image when bdrv_truncate() is changed to require a BdrvChild.

Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Reviewed-by: Max Reitz <mreitz@redhat.com>
block/mirror.c