[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH 3/5 v2] info blockstats: show highest_allocated if e
From: |
Uri Lublin |
Subject: |
[Qemu-devel] [PATCH 3/5 v2] info blockstats: show highest_allocated if exists |
Date: |
Thu, 22 Jan 2009 12:43:53 +0200 |
Signed-off-by: Uri Lublin <address@hidden>
---
block.c | 7 ++++++-
1 files changed, 6 insertions(+), 1 deletions(-)
diff --git a/block.c b/block.c
index 3250327..0058531 100644
--- a/block.c
+++ b/block.c
@@ -1077,6 +1077,7 @@ void bdrv_info(void)
void bdrv_info_stats (void)
{
BlockDriverState *bs;
+ BlockDriverInfo bdi;
for (bs = bdrv_first; bs != NULL; bs = bs->next) {
term_printf ("%s:"
@@ -1084,10 +1085,14 @@ void bdrv_info_stats (void)
" wr_bytes=%" PRIu64
" rd_operations=%" PRIu64
" wr_operations=%" PRIu64
- "\n",
+ ,
bs->device_name,
bs->rd_bytes, bs->wr_bytes,
bs->rd_ops, bs->wr_ops);
+ if (bdrv_get_info(bs, &bdi) == 0)
+ term_printf(" high=%" PRIu64,
+ bdi.highest_alloc);
+ term_printf("\n");
}
}
--
1.6.0.6
Re: [Qemu-devel] [PATCH 0/5 v2] qcow2 info: show highest-allocation and num-free-bytes, Anthony Liguori, 2009/01/22