projects
/
qemu
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
LBA48 support (Jens Axboe)
[qemu]
/
qemu-img.c
diff --git
a/qemu-img.c
b/qemu-img.c
index
31f8776
..
3a18c93
100644
(file)
--- a/
qemu-img.c
+++ b/
qemu-img.c
@@
-127,7
+127,7
@@
static void format_print(void *opaque, const char *name)
void help(void)
{
void help(void)
{
- printf("qemu-img version " QEMU_VERSION ", Copyright (c) 2004 Fabrice Bellard\n"
+ printf("qemu-img version " QEMU_VERSION ", Copyright (c) 2004-2005 Fabrice Bellard\n"
"usage: qemu-img command [command options]\n"
"QEMU disk image utility\n"
"\n"
"usage: qemu-img command [command options]\n"
"QEMU disk image utility\n"
"\n"
@@
-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)
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"
printf("image: %s\n"
"file format: %s\n"
"virtual size: %s (%lld bytes)\n"