]> git.ipfire.org Git - thirdparty/libvirt.git/commit
vircgroup: refactor virCgroupEnableMissingControllers
authorPavel Hrdina <phrdina@redhat.com>
Mon, 2 Nov 2020 15:05:07 +0000 (16:05 +0100)
committerPavel Hrdina <phrdina@redhat.com>
Tue, 3 Nov 2020 20:26:32 +0000 (21:26 +0100)
commit77291414c7a8745cf4d2b06d3c38d269cfbcfe32
tree2e7806c26404f1ac231c93ccc8fce1b4fd22ad13
parent99d2c6519ad18651b5959fa0a3366bcb2c1e44f3
vircgroup: refactor virCgroupEnableMissingControllers

Use virStringSplit() to get the list of directories needed to be
created. This improves readability of the code and stops passing
absolute path to virCgroupNewFromParent().

Signed-off-by: Pavel Hrdina <phrdina@redhat.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
src/util/vircgroup.c