]> git.ipfire.org Git - thirdparty/libvirt.git/commit
vircgroup: introduce virCgroupSetPlacement
authorPavel Hrdina <phrdina@redhat.com>
Wed, 21 Oct 2020 12:35:48 +0000 (14:35 +0200)
committerPavel Hrdina <phrdina@redhat.com>
Tue, 3 Nov 2020 20:26:32 +0000 (21:26 +0100)
commit085590fee4c88783c27534d2103adceacfa279bb
tree8b1faf8ca9506edcc5c83eb1fc5ae8ad06121694
parentca7b305631ded82a5a32f00c4c55bcdf78d19408
vircgroup: introduce virCgroupSetPlacement

Currently this task is done by virCgroupCopyPlacement when the @path
starts with "/".

virCgroupNew is always called with @path starting with "/" and there is
no parent to copy path from. To make it obvious what the code is doing
introduce new helper.

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