]> git.proxmox.com Git - mirror_qemu.git/commit - block/qcow2.c
qcow2: Add error messages in qcow2_truncate
authorKevin Wolf <kwolf@redhat.com>
Tue, 6 Mar 2012 11:44:45 +0000 (12:44 +0100)
committerKevin Wolf <kwolf@redhat.com>
Mon, 12 Mar 2012 14:14:06 +0000 (15:14 +0100)
commit259b21731050eccfe1fd4da949a9633ec7547b04
tree7f14b464bd250124f89af54f8fdfd99b680688d2
parente88774971c33671477c9eb4a4cf1e65a047c9838
qcow2: Add error messages in qcow2_truncate

qemu-img resize has some limitations with qcow2, but the user is only
told that "this image format does not support resize". Quite confusing,
so add some more detailed error_report() calls and change "this image
format" into "this image".

Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Reviewed-by: Stefan Hajnoczi <stefanha@linux.vnet.ibm.com>
block/qcow2.c
qemu-img.c