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

Francois-Xavier Bourlet francois-xavier.bourlet at dotcloud.com
Sun Mar 20 04:19:07 UTC 2011


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.

cheers
-- 
François-Xavier Bourlet
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-lxc_cgroup_path_get-cache-the-right-value.patch
Type: application/octet-stream
Size: 1471 bytes
Desc: not available
URL: <http://lists.linuxcontainers.org/pipermail/lxc-devel/attachments/20110320/0a404dff/attachment.obj>


More information about the lxc-devel mailing list