]> git.ipfire.org Git - thirdparty/libcgroup.git/commit
adds lssubsys tool
authorIvana Hutarova Varekova <varekova@redhat.com>
Mon, 24 Aug 2009 09:46:17 +0000 (11:46 +0200)
committerDhaval Giani <dhaval@linux.vnet.ibm.com>
Sat, 29 Aug 2009 05:20:26 +0000 (10:50 +0530)
commita59c0b110368b68f38721b1937a6f6f4b9d2e3a1
tree91bcebb94d988233fc6813c735ab2a2702410fab
parent3a63b883e2317d0d62743e45f6331f92290f67ad
adds lssubsys tool

Description:
 Show controller, which are mounted/which are on input
 and if option -m is used shows the mount point on which are mounted:

Changes since V1(the previous versions was not enumerated):
*   fix the size of array cont_name - so no allocation and c_max variable
removed
*   change the sequence of processing of controllers list on input (now
first) and internal controller list(first in the previous version), now the
controllers are output in order in which they are put to input
*   fix return values/error messages - now if the controller is not mount
the tool return error - it returns 0 otherwise

Changes since V2
* fix the format of comments which have more than 1 line

Changes since V3
* printf of help -> fprintf(stdout,

Syntax:
 lssubsys [-m] [controller1] [controller2] [...]

 -m - show mount points

Examples:
 $lssubsys -m cpuacct
 cpuset,cpuacct /mnt/cgroups/cpuset

 $ lssubsys
 devices
 cpuset,cpuacct

Signed-off-by: Ivana Hutarova Varekova <varekova@redhat.com>
Signed-off-by: Dhaval Giani <dhaval@linux.vnet.ibm.com>
src/tools/Makefile.am
src/tools/lssubsys.c [new file with mode: 0644]