Fix block statistics with newer versions of Xen
authorGuido Günther <agx@sigxcpu.org>
Fri, 10 Sep 2010 13:57:35 +0000 (15:57 +0200)
committerDaniel Veillard <veillard@redhat.com>
Fri, 10 Sep 2010 13:57:35 +0000 (15:57 +0200)
commit8a70113a9949fd482151f2962dd760364525a996
tree32b1cfe8cdd3df53d69e46ab78673cdeac90e576
parentdfec22cc6035a95ff1c7609ea060029cb99182cc
Fix block statistics with newer versions of Xen

Apparently the xen block device statistics moved from
"/sys/devices/xen-backend/vbd-%d-%d/statistics/%s"
to
"/sys/bus/xen-backend/devices/vbd-%d-%d/statistics/%s"

* src/xen/block_stats.c: try the extra path in case of failure to
  find the statistics in /sys
src/xen/block_stats.c