]> rtime.felk.cvut.cz Git - lisovros/qemu_apohw.git/commitdiff
Revert r6406
authoraliguori <aliguori@c046a42c-6fe2-441c-8c8c-71466251a162>
Wed, 11 Mar 2009 20:16:05 +0000 (20:16 +0000)
committeraliguori <aliguori@c046a42c-6fe2-441c-8c8c-71466251a162>
Wed, 11 Mar 2009 20:16:05 +0000 (20:16 +0000)
This series is broken by design as it requires expensive IO operations at
open time causing very long delays when starting a virtual machine for the
first time.

Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
git-svn-id: svn://svn.savannah.nongnu.org/qemu/branches/stable_0_10_0@6819 c046a42c-6fe2-441c-8c8c-71466251a162

block.c

diff --git a/block.c b/block.c
index 08012a9984054f5f3f81a9ae223d642a13130a8a..bcd8431f1e72b282a3afb4692757e6af58a2895a 100644 (file)
--- a/block.c
+++ b/block.c
@@ -1125,7 +1125,6 @@ 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:"
@@ -1133,14 +1132,10 @@ 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=%" PRId64,
-                        bdi.highest_alloc);
-        term_printf("\n");
     }
 }