From b85c165715f29c8e7f936a6072d4d9ba0cc371f3 Mon Sep 17 00:00:00 2001 From: aliguori <aliguori> Date: Tue, 3 Mar 2009 16:27:04 +0200 Subject: [PATCH 6/8] qemu-img: info: show highest_alloc and num_free_bytes if exist (Uri Lublin) Signed-off-by: Uri Lublin <uril@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com> RH-Upstream-status: applied(qemu/trunk) Bugzilla: 488250 Acked-by: Eduardo Habkost <ehabkost@redhat.com> Acked-by: Dor Laor <dlaor@redhat.com> --- qemu/qemu-img.c | 4 ++++ 1 files changed, 4 insertions(+), 0 deletions(-) diff --git a/qemu/qemu-img.c b/qemu/qemu-img.c index 964b28b..faf5d3b 100644 --- a/qemu/qemu-img.c +++ b/qemu/qemu-img.c @@ -727,6 +727,10 @@ static int img_info(int argc, char **argv) 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') { -- 1.6.1