On Mon, Aug 24, 2015 at 02:58:07PM +0300, Vladimir Davydov wrote: > > As you wish.
Thank you! > --- > From: Vladimir Davydov <vdavy...@parallels.com> > Subject: [PATCH rh7] cgroup: do not virtualize output of cgroup_path > > When cgroup_path() is called from inside a container, its output is > "virtualized", i.e. cgroup /CTID/A/B is reported as /A/B. This was done > for userspace tools to not get confused by the output of some proc files > (namely, /proc/PID/{cgroup,cpuset}). However, it is wrong to virtualize > cgroup_path() anytime it is called by a container. For instance, it is > called from inside a container on OOM in order to dump memcg info to > system log, in which case mangling its output would be incorrect. > > Therefore this patch makes cgroup_path() always return an absolute path. > To get a container-relative path, one should now use cgroup_path_ve(). > Currently, cgroup_path_ve() is only used for /proc files output (it > seems to be enough for now). > > https://jira.sw.ru/browse/PSBM-34852 > > Signed-off-by: Vladimir Davydov <vdavy...@parallels.com> Acked-by: Cyrill Gorcunov <gorcu...@openvz.org> _______________________________________________ Devel mailing list Devel@openvz.org https://lists.openvz.org/mailman/listinfo/devel