]> git.ipfire.org Git - thirdparty/libcgroup.git/commit
Added -M option to lssubsys to show multiple mount points of hierarchies.
authorJan Safranek <jsafrane@redhat.com>
Wed, 6 Apr 2011 06:37:25 +0000 (08:37 +0200)
committerJan Safranek <jsafrane@redhat.com>
Mon, 18 Apr 2011 12:13:57 +0000 (14:13 +0200)
commitd8ea67de86fe507c37e1657af2351aae30aa2431
tree00f70cef70c769dd83daeae7249498819cd9525e
parent3ce9f5a45d80251195aa08da23359008df79970d
Added -M option to lssubsys to show multiple mount points of hierarchies.

Now libcgroup is aware of hierarchies and all its mount points, let's
extend lssubsys to show them. The patch also renames few variables to be
descriptive, 'name' is not name of controller, it's list of controllers.

Now (and also with the patch, '-m' works the same):
$ lssubsys -m
cpuset,cpuacct /cgroup/cpu
memory /cgroup/memory

With the patch:
$ lssubsys -M
cpuset,cpuacct /cgroup/cpu
cpuset,cpuacct /cgroup/cpu2
memory /cgroup/memory

Signed-off-by: Jan Safranek <jsafrane@redhat.com>
Acked-by: Ivana Hutarova Varekova<varekova@redhat.com>
doc/man/lssubsys.1
src/tools/lssubsys.c