]> Git Repo - qemu.git/commit
block: check for RESIZE blocker in the QMP command, not bdrv_truncate()
authorJeff Cody <[email protected]>
Wed, 25 Jun 2014 20:55:30 +0000 (16:55 -0400)
committerKevin Wolf <[email protected]>
Fri, 27 Jun 2014 09:37:35 +0000 (11:37 +0200)
commit9c75e168bc388094c04aabb6fc59c91abe06e81c
tree1ffb1180562aa96b5217310a33c27d041778f558
parenta760715095e9cda6eb97486c040aa35f82297945
block: check for RESIZE blocker in the QMP command, not bdrv_truncate()

If we check for the RESIZE blocker in bdrv_truncate(), that means a
commit will fail if the overlay layer is larger than the base, due to
the backing blocker.

This is a regression in behavior from 2.0; currently, commit will try to
grow the size of the base image to match the overlay size, if the
overlay size is larger.

By moving this into the QMP command qmp_block_resize(), it allows
usage of bdrv_truncate() within block jobs.

Signed-off-by: Jeff Cody <[email protected]>
Reviewed-by: Eric Blake <[email protected]>
Signed-off-by: Kevin Wolf <[email protected]>
block.c
blockdev.c
This page took 0.022713 seconds and 4 git commands to generate.