]> git.proxmox.com Git - mirror_qemu.git/commit
block: Assertions for resize permission
authorKevin Wolf <kwolf@redhat.com>
Fri, 17 Feb 2017 13:52:00 +0000 (14:52 +0100)
committerKevin Wolf <kwolf@redhat.com>
Tue, 28 Feb 2017 19:47:50 +0000 (20:47 +0100)
commitc8f6d58edb0defbe1e90d44419ec8ec6d711c341
tree3717fe97ab2df370bd059691826719d71f666cc1
parentafa4b293230c0bad3dfbfa9c0ff3f7bdfab40430
block: Assertions for resize permission

This adds an assertion that ensures that the necessary resize permission
has been granted before bdrv_truncate() is called.

Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Reviewed-by: Max Reitz <mreitz@redhat.com>
Acked-by: Fam Zheng <famz@redhat.com>
block.c
block/io.c