add test for empty controller/variable stack
Signed-off-by: Ivana Hutarova Varekova <varekova@redhat.com>
Signed-off-by: Jan Safranek <jsafrane@redhat.com>
.SH DESCRIPTION
The command prints the parameter(s) of input cgroup(s).
+If there is not set any controller or variable,
+then values of all possible variables are displayed.
.TP
.B <path>
goto err;
}
+ /*
+ * if no controller or variable is set
+ * then show values of all possible variables
+ */
+ if ((c_number == 0) && (n_number == 0))
+ mode |= MODE_SHOW_ALL_CONTROLLERS;
+
/* Initialize libcgroup. */
ret = cgroup_init();
if (ret) {