diff options
author | Kevin Wolf <kwolf@redhat.com> | 2012-03-06 12:44:45 +0100 |
---|---|---|
committer | Kevin Wolf <kwolf@redhat.com> | 2012-03-12 15:14:06 +0100 |
commit | 259b21731050eccfe1fd4da949a9633ec7547b04 (patch) | |
tree | 7f14b464bd250124f89af54f8fdfd99b680688d2 /qemu-img.c | |
parent | e88774971c33671477c9eb4a4cf1e65a047c9838 (diff) | |
download | qemu-259b21731050eccfe1fd4da949a9633ec7547b04.zip qemu-259b21731050eccfe1fd4da949a9633ec7547b04.tar.gz qemu-259b21731050eccfe1fd4da949a9633ec7547b04.tar.bz2 |
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>
Diffstat (limited to 'qemu-img.c')
-rw-r--r-- | qemu-img.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -1614,7 +1614,7 @@ static int img_resize(int argc, char **argv) printf("Image resized.\n"); break; case -ENOTSUP: - error_report("This image format does not support resize"); + error_report("This image does not support resize"); break; case -EACCES: error_report("Image is read-only"); |