]> xenbits.xensource.com Git - people/liuw/libxenctrl-split/libvirt.git/commit
nodeinfo: Fix nodeGetCPUBitmap()'s fallback code path
authorAndrea Bolognani <abologna@redhat.com>
Fri, 17 Jul 2015 16:12:50 +0000 (18:12 +0200)
committerPeter Krempa <pkrempa@redhat.com>
Wed, 22 Jul 2015 07:57:57 +0000 (09:57 +0200)
commit2a6801892ac962d8176f764edde219ae00cb7f3a
treeace62040cde13750ebcddea3f6711a3bd428a437
parentc30ae1864f7b542c3bf765f9b5988f5298dadc9b
nodeinfo: Fix nodeGetCPUBitmap()'s fallback code path

During the recent refactoring/cleanups, a bug has been introduced
that caused all CPUs to be reported as online unless the sysfs
cpu/present file was available.

This commit fixes the fallback code path by building the directory
path passed to virNodeGetCpuValue() correctly.
src/nodeinfo.c