]> git.ipfire.org Git - thirdparty/libcgroup.git/commit
Fixed libcgroup to be aware of hierarchies mounted multiple times.
authorJan Safranek <jsafrane@redhat.com>
Wed, 6 Apr 2011 06:37:04 +0000 (08:37 +0200)
committerJan Safranek <jsafrane@redhat.com>
Mon, 18 Apr 2011 12:13:37 +0000 (14:13 +0200)
commitbdd00bbcd5346cc322be29f88187515ed577aff4
tree2351c187cd75b9fb398fa7bc83a1c53f2730e6b8
parent7f66841f8a5f1ebe4360293783f97efd680ecb1f
Fixed libcgroup to be aware of hierarchies mounted multiple times.

Current libcgroup design handles each hierarchy only once. If a hierarchy
is mounted twice or more times, only the first mount point is taken into
account and the others are 'invisible' to libcgroup.

This causes cgsnapshot and lssubsys to show only one mount point for a
hierarchy and especially in case of cgsnapshot it's not what user expects.
The patch below adds a list of all mount points to cg_mount_table_s structure.

Signed-off-by: Jan Safranek <jsafrane@redhat.com>
Acked-by: Ivana Hutarova Varekova<varekova@redhat.com>
src/api.c
src/config.c
src/libcgroup-internal.h