Commit addd7f68 authored by Pavel Emelyanov's avatar Pavel Emelyanov

cgroup: Print cgroup values being restored

We have many complains about errors restoring cgroup props, so
print the exact values we restore _before_ doing this, not only
after successful restore :)
Signed-off-by: 's avatarPavel Emelyanov <xemul@parallels.com>
parent bb45f832
...@@ -960,6 +960,8 @@ static int restore_cgroup_prop(const CgroupPropEntry * cg_prop_entry_p, ...@@ -960,6 +960,8 @@ static int restore_cgroup_prop(const CgroupPropEntry * cg_prop_entry_p,
return -1; return -1;
} }
pr_info("Restoring cgroup property value [%s] to [%s]\n", cg_prop_entry_p->value, path);
cg = get_service_fd(CGROUP_YARD); cg = get_service_fd(CGROUP_YARD);
f = fopenat(cg, path, "w+"); f = fopenat(cg, path, "w+");
if (!f) { if (!f) {
...@@ -978,7 +980,6 @@ static int restore_cgroup_prop(const CgroupPropEntry * cg_prop_entry_p, ...@@ -978,7 +980,6 @@ static int restore_cgroup_prop(const CgroupPropEntry * cg_prop_entry_p,
return -1; return -1;
} }
pr_info("Restored cgroup property value %s to %s\n", cg_prop_entry_p->value, path);
return 0; return 0;
} }
...@@ -1034,6 +1035,8 @@ static int restore_special_cpuset_props(char *paux, size_t off, CgroupDirEntry * ...@@ -1034,6 +1035,8 @@ static int restore_special_cpuset_props(char *paux, size_t off, CgroupDirEntry *
{ {
int i, j; int i, j;
pr_info("Restore special cpuset props\n");
for (i = 0; special_cpuset_props[i]; i++) { for (i = 0; special_cpuset_props[i]; i++) {
const char *name = special_cpuset_props[i]; const char *name = special_cpuset_props[i];
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment