Skip to contentSkip to conversation

[6408] qemu-img: info: show highest_alloc and num_free_bytes if exist ( Uri Lublin)

Qemu-devel Anthony Liguori 1 participant 1 message Jan 22, 2009

lore
Share & tools
lore
#0 lore raw

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)

Modified Paths:
--------------
trunk/qemu-img.c

Modified: trunk/qemu-img.c
===================================================================

qemu-img.c +4 -0
@@ -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') {