]> git.ipfire.org Git - thirdparty/libvirt.git/commit
host-validate: Be more careful when checking for cgroup mounts
authorAndrea Bolognani <abologna@redhat.com>
Mon, 4 Apr 2016 14:25:15 +0000 (16:25 +0200)
committerAndrea Bolognani <abologna@redhat.com>
Fri, 8 Apr 2016 11:06:23 +0000 (13:06 +0200)
commitf854c559b9e7a40152e2f8c1c360ed92ee174c00
tree9be77feb16ec6056d2d302024083a81b222ed9c7
parent4572997aca7c5467bcee8afc5b945352ce56a66f
host-validate: Be more careful when checking for cgroup mounts

The existing code is built on the assumption that no cgroup
name can appear as part of another cgroup name; moreover, cgroups
are expected to always be listed in a specific order.

If that's not the case, eg. 'cpuacct' is listed before 'cpu', the
algorithm fails to detect the cgroup mount point.

Rewrite it to get rid of such assumptions.
tools/virt-host-validate-common.c