cg_unified_cached: return ENOMEDIUM if we cannot find a known hierarchy
authorMike Gilbert <floppym@gentoo.org>
Tue, 9 Mar 2021 22:57:37 +0000 (17:57 -0500)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Tue, 23 Mar 2021 09:09:35 +0000 (10:09 +0100)
commit61133b51afabb5feb35ed152e206146abfb4b24c
tree15b88f50532a0898341e7a244d334e4427035fb0
parent0a87441aefacfe94a81ad89611349b531d684d08
cg_unified_cached: return ENOMEDIUM if we cannot find a known hierarchy

When the test suite is being run in a foreign environment,
/sys/fs/cgroup might not be set up in a way that we recognize.
Returning ENOMEDIUM causes the tests to be skipped in this case.

Bug: https://bugs.gentoo.org/771819
(cherry picked from commit 2156061fb33811aedb160d1b476793a5b845b143)
(cherry picked from commit 84ed68f5f0c393db3824dbbb2bc2118cf6e03722)
src/basic/cgroup-util.c