mirror of
git://github.com/lxc/lxc
synced 2025-09-03 13:39:35 +00:00
cgfsng: log cgroup names for monitor and container
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
This commit is contained in:
@@ -1376,8 +1376,10 @@ __cgfsng_ops static inline bool cgfsng_monitor_create(struct cgroup_ops *ops,
|
|||||||
}
|
}
|
||||||
} while (ops->hierarchies[i] && idx > 0 && idx < 1000);
|
} while (ops->hierarchies[i] && idx > 0 && idx < 1000);
|
||||||
|
|
||||||
if (idx < 1000)
|
if (idx < 1000) {
|
||||||
bret = true;
|
bret = true;
|
||||||
|
INFO("The monitor process uses \"%s\" as cgroup", monitor_cgroup);
|
||||||
|
}
|
||||||
|
|
||||||
on_error:
|
on_error:
|
||||||
free(monitor_cgroup);
|
free(monitor_cgroup);
|
||||||
@@ -1454,6 +1456,7 @@ again:
|
|||||||
}
|
}
|
||||||
|
|
||||||
ops->container_cgroup = container_cgroup;
|
ops->container_cgroup = container_cgroup;
|
||||||
|
INFO("The container uses \"%s\" as cgroup", container_cgroup);
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user