]> xenbits.xensource.com Git - libvirt.git/commit
Move machineName generation from virsystemd into domain_conf
authorMartin Kletzander <mkletzan@redhat.com>
Fri, 21 Jul 2017 13:51:03 +0000 (15:51 +0200)
committerMartin Kletzander <mkletzan@redhat.com>
Tue, 25 Jul 2017 15:02:27 +0000 (17:02 +0200)
commiteaf2c9f89107b9f60cf8db2c919f78b987ff7177
tree97b211a866782aa98edcb314044e9c82b74d8409
parentaa0dfb91d547e4020018e77fd3211e35c6311de9
Move machineName generation from virsystemd into domain_conf

It is more related to a domain as we might use it even when there is
no systemd and it does not use any dbus/systemd functions.  In order
not to use code from conf/ in util/ pass machineName in cgroups code
as a parameter.  That also fixes a leak of machineName in the lxc
driver and cleans up and de-duplicates some code.

Signed-off-by: Martin Kletzander <mkletzan@redhat.com>
16 files changed:
src/conf/domain_conf.c
src/conf/domain_conf.h
src/libvirt_private.syms
src/lxc/lxc_cgroup.c
src/lxc/lxc_domain.c
src/lxc/lxc_domain.h
src/lxc/lxc_process.c
src/qemu/qemu_cgroup.c
src/qemu/qemu_domain.c
src/qemu/qemu_domain.h
src/qemu/qemu_process.c
src/util/vircgroup.c
src/util/vircgroup.h
src/util/virsystemd.c
src/util/virsystemd.h
tests/virsystemdtest.c