[lxc-devel] [PATCH] lxc_cgroup_path_get cache the wrong data

Daniel Lezcano daniel.lezcano at free.fr
Tue Mar 22 14:12:41 UTC 2011


On 03/20/2011 05:19 AM, Francois-Xavier Bourlet wrote:
> Hi,
>
> lxc_cgroup_path_get currently cache the cgroup mount point plus the
> container name at the same time, making every call of the function
> returning the same value.
> It mean that actually every call to lxc_cgroup_get with a different
> container name will in fact use the same container name as used for
> the primary call.
>
> I join a patch to fix that, still doing some caching, but only caching
> the cgroup moint point this time. This patch actually work for me, as
> I am using the liblxc for retrieving statistics about all running
> containers, using lxc_cgroup_get to retrieve every interesting values.

Applied Thanks
   -- Daniel




More information about the lxc-devel mailing list