diff options
author | Ivana Hutarova Varekova <varekova@redhat.com> | 2009-08-24 11:46:17 +0200 |
---|---|---|
committer | Dhaval Giani <dhaval@linux.vnet.ibm.com> | 2009-08-29 10:50:26 +0530 |
commit | a59c0b110368b68f38721b1937a6f6f4b9d2e3a1 (patch) | |
tree | 91bcebb94d988233fc6813c735ab2a2702410fab /src/api.c | |
parent | 3a63b883e2317d0d62743e45f6331f92290f67ad (diff) | |
download | libcg-a59c0b110368b68f38721b1937a6f6f4b9d2e3a1.tar.gz libcg-a59c0b110368b68f38721b1937a6f6f4b9d2e3a1.tar.xz libcg-a59c0b110368b68f38721b1937a6f6f4b9d2e3a1.zip |
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>
Diffstat (limited to 'src/api.c')
0 files changed, 0 insertions, 0 deletions