mirror of
https://git.proxmox.com/git/mirror_lxc
synced 2025-08-07 10:57:17 +00:00
cgfs: Log the whole cgroup path too
Signed-off-by: Stéphane Graber <stgraber@ubuntu.com> Acked-by: Serge E. Hallyn <serge.hallyn@ubuntu.com>
This commit is contained in:
parent
b7aa56b85c
commit
b38b62a6d4
@ -953,7 +953,7 @@ static struct cgroup_process_info *lxc_cgroupfs_create(const char *name, const c
|
|||||||
current_entire_path = NULL;
|
current_entire_path = NULL;
|
||||||
goto cleanup_name_on_this_level;
|
goto cleanup_name_on_this_level;
|
||||||
} else if (r < 0 && errno != EEXIST) {
|
} else if (r < 0 && errno != EEXIST) {
|
||||||
SYSERROR("Could not create cgroup %s", current_entire_path);
|
SYSERROR("Could not create cgroup '%s' in '%s'.", current_entire_path, info_ptr->designated_mount_point->mount_point);
|
||||||
goto cleanup_from_error;
|
goto cleanup_from_error;
|
||||||
} else if (r == 0) {
|
} else if (r == 0) {
|
||||||
/* successfully created */
|
/* successfully created */
|
||||||
@ -961,7 +961,7 @@ static struct cgroup_process_info *lxc_cgroupfs_create(const char *name, const c
|
|||||||
if (r < 0)
|
if (r < 0)
|
||||||
goto cleanup_from_error;
|
goto cleanup_from_error;
|
||||||
if (!init_cpuset_if_needed(info_ptr->designated_mount_point, current_entire_path)) {
|
if (!init_cpuset_if_needed(info_ptr->designated_mount_point, current_entire_path)) {
|
||||||
ERROR("Failed to initialize cpuset in new '%s'.", current_entire_path);
|
ERROR("Failed to initialize cpuset for '%s' in '%s'.", current_entire_path, info_ptr->designated_mount_point->mount_point);
|
||||||
goto cleanup_from_error;
|
goto cleanup_from_error;
|
||||||
}
|
}
|
||||||
info_ptr->created_paths[info_ptr->created_paths_count++] = current_entire_path;
|
info_ptr->created_paths[info_ptr->created_paths_count++] = current_entire_path;
|
||||||
|
Loading…
Reference in New Issue
Block a user