[LTP] [PATCH v1] tst_cgroup.c: Force tst_cg_scan only scan specific cgroup version if needs_ver exist

Cyril Hrubis chrubis@suse.cz
Fri Nov 8 12:23:48 CET 2024


Hi!
> If you add .needs_cgroup_ver = TST_CG_V1 in cpuset02.c and running on sle-micro you will hit
> https://github.com/linux-test-project/ltp/blob/6408294d83682635393e36c14bbd6ebd94fead94/lib/tst_cgroup.c#L892
> 
> Since sle-micro platform already create cgroupv2 mount point, the tst_cg_scan will get cgroupv2 info and
> will not call cgroup_mount_v1.

And that is, as far as I can tell, correct. You cannot mount a
controller under v1 when it was already mounted under v2.

-- 
Cyril Hrubis
chrubis@suse.cz


More information about the ltp mailing list