]> git.ipfire.org Git - thirdparty/libvirt.git/commit
vircgroup: extract virCgroupNewDetect from virCgroupNew
authorPavel Hrdina <phrdina@redhat.com>
Wed, 14 Oct 2020 09:23:27 +0000 (11:23 +0200)
committerPavel Hrdina <phrdina@redhat.com>
Tue, 3 Nov 2020 20:26:32 +0000 (21:26 +0100)
commit234769b0d57ba6b1267b0e2925cfe35a0a2ac077
tree729530fbf58f0145897ac5a14e395cf3ae888144
parentf8ca962589f707b7340076267e74e8e53dc0e5d8
vircgroup: extract virCgroupNewDetect from virCgroupNew

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