aboutsummaryrefslogtreecommitdiff
path: root/qemu-img.c
diff options
context:
space:
mode:
authorbellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162>2005-04-28 21:15:08 +0000
committerbellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162>2005-04-28 21:15:08 +0000
commitde167e416fa3d6e4bbdcac90973954c6bfae3070 (patch)
treeebe247a5559911c4b3161c125b660760b295d6d2 /qemu-img.c
parent712e78744e3a0332825a80298f38225b30dec88c (diff)
downloadqemu-de167e416fa3d6e4bbdcac90973954c6bfae3070.zip
qemu-de167e416fa3d6e4bbdcac90973954c6bfae3070.tar.gz
qemu-de167e416fa3d6e4bbdcac90973954c6bfae3070.tar.bz2
Virtual VFAT support (Johannes Schindelin)
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@1426 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'qemu-img.c')
-rw-r--r--qemu-img.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/qemu-img.c b/qemu-img.c
index 31f8776..9fb9887 100644
--- a/qemu-img.c
+++ b/qemu-img.c
@@ -658,9 +658,10 @@ static int img_info(int argc, char **argv)
get_human_readable_size(size_buf, sizeof(size_buf), total_sectors * 512);
allocated_size = get_allocated_file_size(filename);
if (allocated_size < 0)
- error("Could not get file size '%s'", filename);
- get_human_readable_size(dsize_buf, sizeof(dsize_buf),
- allocated_size);
+ sprintf(dsize_buf, "unavailable");
+ else
+ get_human_readable_size(dsize_buf, sizeof(dsize_buf),
+ allocated_size);
printf("image: %s\n"
"file format: %s\n"
"virtual size: %s (%lld bytes)\n"