]> git.proxmox.com Git - mirror_qemu.git/commit
blockdev: Use BlockBackend to resize in qmp_block_resize()
authorKevin Wolf <kwolf@redhat.com>
Fri, 17 Feb 2017 10:23:33 +0000 (11:23 +0100)
committerKevin Wolf <kwolf@redhat.com>
Fri, 24 Feb 2017 15:09:23 +0000 (16:09 +0100)
commit7dad9ee6467e0e3024fbe09f8a363148558b8eef
tree4a8e6364b206fa01fc51c64c3ef344eaa9765ce8
parent2c3b44da07d341557a8203cc509ea07fe3605e11
blockdev: Use BlockBackend to resize in qmp_block_resize()

In order to be able to do permission checking and to keep working with
the BdrvChild based bdrv_truncate() that this involves, we need to
create a temporary BlockBackend to resize the image.

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