diff options
author | bellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162> | 2005-04-28 21:15:08 +0000 |
---|---|---|
committer | bellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162> | 2005-04-28 21:15:08 +0000 |
commit | de167e416fa3d6e4bbdcac90973954c6bfae3070 (patch) | |
tree | ebe247a5559911c4b3161c125b660760b295d6d2 /qemu-img.c | |
parent | 712e78744e3a0332825a80298f38225b30dec88c (diff) | |
download | qemu-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.c | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -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" |