]> git.ipfire.org Git - thirdparty/libvirt.git/commit
nodeinfo: remove sysfs_prefix from all methods
authorDaniel P. Berrange <berrange@redhat.com>
Wed, 13 Apr 2016 14:28:55 +0000 (15:28 +0100)
committerDaniel P. Berrange <berrange@redhat.com>
Thu, 9 Jun 2016 17:00:18 +0000 (18:00 +0100)
commit08ea852c255a792b85ca89223a31e128a2bf2e21
treebd745d6760757963f2bdcba4f4a1d6dc901eabf4
parent5f4c50d528c8a7297c04c485b7b2ffd8ce859682
nodeinfo: remove sysfs_prefix from all methods

Nearly all the methods in the nodeinfo file are given a
'const char *sysfs_prefix' parameter to override the
default sysfs path (/sys/devices/system). Every single
caller passes in NULL for this, except one use in the
unit tests. Furthermore this parameter is totally
Linux-specific, when the APIs are intended to be cross
platform portable.

This removes the sysfs_prefix parameter and instead gives
a new method linuxNodeInfoSetSysFSSystemPath for use by
the test suite.

For two of the methods this hardcodes use of the constant
SYSFS_SYSTEM_PATH, since the test suite does not need to
override the path for thos methods.

Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
24 files changed:
src/bhyve/bhyve_capabilities.c
src/bhyve/bhyve_driver.c
src/libvirt_linux.syms
src/lxc/lxc_conf.c
src/lxc/lxc_controller.c
src/lxc/lxc_driver.c
src/nodeinfo.c
src/nodeinfo.h
src/nodeinfopriv.h
src/openvz/openvz_conf.c
src/openvz/openvz_driver.c
src/phyp/phyp_driver.c
src/qemu/qemu_capabilities.c
src/qemu/qemu_driver.c
src/qemu/qemu_process.c
src/uml/uml_conf.c
src/uml/uml_driver.c
src/util/vircgroup.c
src/vbox/vbox_common.c
src/vmware/vmware_conf.c
src/vz/vz_driver.c
src/vz/vz_sdk.c
tests/nodeinfotest.c
tests/vircgrouptest.c