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

[libvirt] wrong path of domblkstat



Hi all:

I tried to use virsh domblkstat to get block information of a vm(xen
para-virtualized), and it returns error message like this
     error: Failed to get block stats vm1 hda
     error: internal error read_bd_stats: Failed to read any block statistics

I found the code in \src\xen\block_stats.c is wrong

in line 121
             "/sys/devices/xen-backend/vbd-%d-%d/statistics/%s",
should be
            "/sys/devices/vbd-%d-%d/statistics/%s",
in line 127 should be
           "/sys/devices/tap-%d-%d/statistics/%s",

After modified and rebuild the soure code,the domblkstat can work fine.
Anyone can help to update the code in the git?


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