]> git.proxmox.com Git - mirror_qemu.git/commit
qcow2: Use BB for resizing in qcow2_amend_options()
authorKevin Wolf <kwolf@redhat.com>
Fri, 17 Feb 2017 09:58:25 +0000 (10:58 +0100)
committerKevin Wolf <kwolf@redhat.com>
Fri, 24 Feb 2017 15:09:23 +0000 (16:09 +0100)
commit70b27f364315e4ad4cb77cdebe530e5bdbdf3dcb
tree675be52d7c99d390f465a26603c1a58ecc2f1fc8
parent7dad9ee6467e0e3024fbe09f8a363148558b8eef
qcow2: Use BB for resizing in qcow2_amend_options()

In order to able to convert bdrv_truncate() to take a BdrvChild and
later to correctly check the resize permission here, we need to use a
BlockBackend for resizing the image.

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