]> git.pld-linux.org Git - packages/libcgroup.git/blame - libcgroup-0.41-api.c-preserve-dirty-flag.patch
- rel 5; add patches from FC
[packages/libcgroup.git] / libcgroup-0.41-api.c-preserve-dirty-flag.patch
CommitLineData
9665627f
AM
1From ad27a46d8c0e180f71b4606d7b2a3bd3bebd7bbf Mon Sep 17 00:00:00 2001
2From: =?UTF-8?q?Nikola=20Forr=C3=B3?= <nforro@redhat.com>
3Date: Thu, 13 Oct 2016 13:42:30 +0200
4Subject: [PATCH] api.c: preserve dirty flag when copying controller values
5MIME-Version: 1.0
6Content-Type: text/plain; charset=UTF-8
7Content-Transfer-Encoding: 8bit
8
9When setting cgroup parameters with cgset fails, no error is reported.
10This is caused by the fact that cgroup_copy_controller_values is not
11preserving dirty flags of the values, so it's making all errors
12considered non-fatal.
13
14Signed-off-by: Nikola Forró <nforro@redhat.com>
15---
16 src/api.c | 1 +
17 1 file changed, 1 insertion(+)
18
19diff --git a/src/api.c b/src/api.c
20index 0bf0615..daf4ef0 100644
21--- a/src/api.c
22+++ b/src/api.c
23@@ -1687,6 +1687,7 @@ static int cgroup_copy_controller_values(struct cgroup_controller *dst,
24 dst_val = dst->values[i];
25 strncpy(dst_val->value, src_val->value, CG_VALUE_MAX);
26 strncpy(dst_val->name, src_val->name, FILENAME_MAX);
27+ dst_val->dirty = src_val->dirty;
28 }
29 err:
30 return ret;
31--
322.7.4
33
This page took 0.163843 seconds and 4 git commands to generate.