]> git.ipfire.org Git - thirdparty/libvirt.git/commit
vircgroup: Ensure /machine group is associated with its parent
authorMiguel Ángel Arruga Vivas <rosen644835@gmail.com>
Mon, 4 Nov 2019 14:55:23 +0000 (15:55 +0100)
committerMichal Privoznik <mprivozn@redhat.com>
Fri, 15 Nov 2019 14:45:25 +0000 (15:45 +0100)
commita74df786a22488cd91865664df17e7c6466e8a85
treee0cbf8fba1940f21c81a9692aa41012749716bb2
parentddcb33bdc06f940de9ae93786e07b6bd62432f66
vircgroup: Ensure /machine group is associated with its parent

Call first virCgroupNew on the parent group virCgroupNewPartition if
it is available on before the creation of the child group.  This
ensures that the creation of a first level group on the unified
architecture, as the check at virCgroupV2ParseControllersFile as the
parent file is there.

Fixes: https://bugzilla.redhat.com/show_bug.cgi?id=1760233
Signed-off-by: Miguel Ángel Arruga Vivas <rosen644835@gmail.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
src/util/vircgroup.c