When setting cgroup parameters with cgset fails, no error is reported.
This is caused by the fact that cgroup_copy_controller_values is not
preserving dirty flags of the values, so it's making all errors
considered non-fatal.

Signed-off-by: Nikola Forró <nfo...@redhat.com>
 src/api.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/api.c b/src/api.c
index 0bf0615..daf4ef0 100644
--- a/src/api.c
+++ b/src/api.c
@@ -1687,6 +1687,7 @@ static int cgroup_copy_controller_values(struct 
cgroup_controller *dst,
                dst_val = dst->values[i];
                strncpy(dst_val->value, src_val->value, CG_VALUE_MAX);
                strncpy(dst_val->name, src_val->name, FILENAME_MAX);
+               dst_val->dirty = src_val->dirty;
        return ret;

Check out the vibrant tech community on one of the world's most 
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
Libcg-devel mailing list

Reply via email to