]> git.proxmox.com Git - mirror_qemu.git/commit
block/copy-before-write: cbw_init(): use file child after attaching
authorVladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com>
Tue, 24 Aug 2021 08:38:38 +0000 (11:38 +0300)
committerHanna Reitz <hreitz@redhat.com>
Wed, 1 Sep 2021 12:03:47 +0000 (14:03 +0200)
commit5a507426740b4d7bdd2b333cfa7f5da3e60ebad8
tree00d966cc513cd7eb824b442457b3632f7000e60a
parentfe7ea40c0ea62d9d4542e6e091186cd60088d3fb
block/copy-before-write: cbw_init(): use file child after attaching

In the next commit we'll get rid of source argument of cbw_init().
Prepare to it now, to make next commit simpler: move the code block
that uses source below attaching the child and use bs->file->bs instead
of source variable.

Signed-off-by: Vladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com>
Reviewed-by: Max Reitz <mreitz@redhat.com>
Message-Id: <20210824083856.17408-17-vsementsov@virtuozzo.com>
Signed-off-by: Hanna Reitz <hreitz@redhat.com>
block/copy-before-write.c