mirror of
https://github.com/checkpoint-restore/criu
synced 2025-08-29 21:38:16 +00:00
cgroup: prepare_cgroup_dirs -- Add some more debug printouts
Signed-off-by: Cyrill Gorcunov <gorcunov@openvz.org> Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
This commit is contained in:
parent
89d3840c9c
commit
6c7ea7af9c
2
cgroup.c
2
cgroup.c
@ -677,6 +677,7 @@ static int prepare_cgroup_dirs(char *paux, size_t off, CgroupDirEntry **ents, si
|
|||||||
|
|
||||||
sprintf(paux + off, "/%s", e->path);
|
sprintf(paux + off, "/%s", e->path);
|
||||||
|
|
||||||
|
pr_debug("\t`- %s\n", paux);
|
||||||
if (mkdirp(paux)) {
|
if (mkdirp(paux)) {
|
||||||
pr_perror("Can't make cgroup dir %s", paux);
|
pr_perror("Can't make cgroup dir %s", paux);
|
||||||
return -1;
|
return -1;
|
||||||
@ -766,6 +767,7 @@ static int prepare_cgroup_sfd(CgroupEntry *ce)
|
|||||||
|
|
||||||
name_off = sprintf(paux + off, "/%s", name);
|
name_off = sprintf(paux + off, "/%s", name);
|
||||||
|
|
||||||
|
pr_debug("\tMaking subdir %s\n", paux);
|
||||||
if (mkdir(paux, 0700)) {
|
if (mkdir(paux, 0700)) {
|
||||||
pr_perror("Can't make cgyard subdir %s", paux);
|
pr_perror("Can't make cgyard subdir %s", paux);
|
||||||
goto err;
|
goto err;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user