[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [6408] qemu-img: info: show highest_alloc and num_free_byte
From: |
Anthony Liguori |
Subject: |
[Qemu-devel] [6408] qemu-img: info: show highest_alloc and num_free_bytes if exist ( Uri Lublin) |
Date: |
Thu, 22 Jan 2009 18:57:38 +0000 |
Revision: 6408
http://svn.sv.gnu.org/viewvc/?view=rev&root=qemu&revision=6408
Author: aliguori
Date: 2009-01-22 18:57:38 +0000 (Thu, 22 Jan 2009)
Log Message:
-----------
qemu-img: info: show highest_alloc and num_free_bytes if exist (Uri Lublin)
Signed-off-by: Uri Lublin <address@hidden>
Signed-off-by: Anthony Liguori <address@hidden>
Modified Paths:
--------------
trunk/qemu-img.c
Modified: trunk/qemu-img.c
===================================================================
--- trunk/qemu-img.c 2009-01-22 18:57:34 UTC (rev 6407)
+++ trunk/qemu-img.c 2009-01-22 18:57:38 UTC (rev 6408)
@@ -727,6 +727,10 @@
if (bdrv_get_info(bs, &bdi) >= 0) {
if (bdi.cluster_size != 0)
printf("cluster_size: %d\n", bdi.cluster_size);
+ if (bdi.highest_alloc)
+ printf("highest_alloc: %ld\n", bdi.highest_alloc);
+ if (bdi.num_free_bytes)
+ printf("num_free_bytes: %ld\n", bdi.num_free_bytes);
}
bdrv_get_backing_filename(bs, backing_filename, sizeof(backing_filename));
if (backing_filename[0] != '\0') {
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Qemu-devel] [6408] qemu-img: info: show highest_alloc and num_free_bytes if exist ( Uri Lublin),
Anthony Liguori <=