Hi, it seems Xen changed the paths to the block device statistics in sysfs: from "/sys/devices/xen-backend/vbd-%d-%d/statistics/%s" to "/sys/bus/xen-backend/devices/vbd-%d-%d/statistics/%s":
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=596004 Attached patch fixes this. O.k. to apply? -- Guido
>From a98e04122a6d869ea9ccaf3122c6abed73720ad7 Mon Sep 17 00:00:00 2001 From: Gerald Turner <gtur...@unzane.com> Date: Wed, 8 Sep 2010 21:24:44 +0200 Subject: [PATCH] Newer Xen versons moved the device statistics. Check these locations too. --- src/xen/block_stats.c | 12 ++++++++++++ 1 files changed, 12 insertions(+), 0 deletions(-) diff --git a/src/xen/block_stats.c b/src/xen/block_stats.c index 6e7a5c3..1d875f2 100644 --- a/src/xen/block_stats.c +++ b/src/xen/block_stats.c @@ -118,6 +118,18 @@ read_bd_stat (int device, int domid, const char *str) int64_t r; snprintf (path, sizeof path, + "/sys/bus/xen-backend/devices/vbd-%d-%d/statistics/%s", + domid, device, str); + r = read_stat (path); + if (r >= 0) return r; + + snprintf (path, sizeof path, + "/sys/bus/xen-backend/devices/tap-%d-%d/statistics/%s", + domid, device, str); + r = read_stat (path); + if (r >= 0) return r; + + snprintf (path, sizeof path, "/sys/devices/xen-backend/vbd-%d-%d/statistics/%s", domid, device, str); r = read_stat (path); -- 1.7.1
-- libvir-list mailing list libvir-list@redhat.com https://www.redhat.com/mailman/listinfo/libvir-list