]> git.ipfire.org Git - thirdparty/libvirt.git/commit
vircgroup: introduce virCgroupNewParent
authorPavel Hrdina <phrdina@redhat.com>
Tue, 3 Nov 2020 12:27:08 +0000 (13:27 +0100)
committerPavel Hrdina <phrdina@redhat.com>
Tue, 3 Nov 2020 20:26:32 +0000 (21:26 +0100)
commitbcfa563707541ab415d6430a0e7ef5bb31cf3200
tree41e760751fc24931b74327f773cc92a8d7f572aa
parent234769b0d57ba6b1267b0e2925cfe35a0a2ac077
vircgroup: introduce virCgroupNewParent

The current code uses virCgroupNew() as a single point of entry and
calls into virCgroupDetect() as well. Both have logic for several paths
which is difficult to figure out.

Extract the actually used code path from the two functions to make
it obvious what's happening in this case.

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