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)
committerLennart Poettering <lennart@poettering.net>
Wed, 17 Mar 2021 14:42:22 +0000 (15:42 +0100)
commit2156061fb33811aedb160d1b476793a5b845b143
tree91d2ba1ff09c373aec3ab8f47b4245d90e414052
parentfa92d38428cdac260e72e280bf1d43539f4ea805
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
src/basic/cgroup-util.c