]> git.proxmox.com Git - mirror_qemu.git/commit
commit: Set commit_top_bs->total_sectors
authorKevin Wolf <kwolf@redhat.com>
Thu, 6 Apr 2017 17:07:14 +0000 (19:07 +0200)
committerKevin Wolf <kwolf@redhat.com>
Fri, 7 Apr 2017 12:44:05 +0000 (14:44 +0200)
commit0d0676a1040d34339731a4e26a9b39b78c8a1fdf
tree35331be2744a36e6a239eab17010e90249c3434c
parent02be4aeb9343d9a4993b1de6cebe6280e82d7254
commit: Set commit_top_bs->total_sectors

Like in the mirror filter driver, we also need to set the image size for
the commit filter driver. This is less likely to be a problem in
practice than for the mirror because we're not at the active layer here,
but attaching new parents to a node in the middle of the chain is
possible, so the size needs to be correct anyway.

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