]> git.ipfire.org Git - thirdparty/systemd.git/commit
cgroup-util: cache all cg_is_*_wanted answers, disable /sys/fs/cgroups/unified on...
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Wed, 22 Feb 2017 17:57:43 +0000 (12:57 -0500)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Wed, 22 Feb 2017 17:57:43 +0000 (12:57 -0500)
commit239a3d09547a32c21e9b9b22499991781c15438e
tree182de5577b648b668bdf9649050a9cc29bcd500b
parent770c4777c92c2c2b5763348135719478f36c3616
cgroup-util: cache all cg_is_*_wanted answers, disable /sys/fs/cgroups/unified on unified

If we encounter an error in proc cmdline parsing, just treat that as permanent,
i.e. the same as if the option was not specified. Realistically, it is better
to use the same condition for all related mounts, then to have e.g.
/sys/fs/cgroup mounted and /sys/fs/cgroup/unified not. If we find something is
mounted and base our answer on that, cache that result too.

Fix the conditions so that if "unified" is used, make sure any "hybrid" mounts
are not mounted.
src/basic/cgroup-util.c