[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-changelog] [xen-unstable] xentop: Display blktap information.



# HG changeset patch
# User kfraser@xxxxxxxxxxxxxxxxxxxxx
# Date 1181211258 -3600
# Node ID 3a413f011b8f5dc53825d6882cdf95d47a4212b1
# Parent  d47415adf38414e36d632e9bfa45e121ce68193c
xentop: Display blktap information.
Signed-off-by: Satoshi UCHIDA <s-uchida@xxxxxxxxxxxxx>
---
 tools/xenstat/xentop/xentop.c |    9 ++++++++-
 1 files changed, 8 insertions(+), 1 deletion(-)

diff -r d47415adf384 -r 3a413f011b8f tools/xenstat/xentop/xentop.c
--- a/tools/xenstat/xentop/xentop.c     Thu Jun 07 11:13:41 2007 +0100
+++ b/tools/xenstat/xentop/xentop.c     Thu Jun 07 11:14:18 2007 +0100
@@ -913,6 +913,12 @@ void do_vbd(xenstat_domain *domain)
        xenstat_vbd *vbd;
        unsigned num_vbds = 0;
 
+       const char *vbd_type[] = {
+               "Unidentified",           /* number 0 */
+               "BlkBack",           /* number 1 */
+               "BlkTap",            /* number 2 */
+       };
+       
        num_vbds = xenstat_domain_num_vbds(domain);
 
        for (i=0 ; i< num_vbds; i++) {
@@ -927,7 +933,8 @@ void do_vbd(xenstat_domain *domain)
                         MINOR(xenstat_vbd_dev(vbd)));
 #endif
 
-               print("VBD %4d %s OO: %8llu   RD: %8llu   WR: %8llu\n",
+               print("VBD %s %4d %s OO: %8llu   RD: %8llu   WR: %8llu\n",
+                     vbd_type[xenstat_vbd_type(vbd)],
                      xenstat_vbd_dev(vbd), details,
                      xenstat_vbd_oo_reqs(vbd),
                      xenstat_vbd_rd_reqs(vbd),

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.