mirror of
https://github.com/checkpoint-restore/criu
synced 2025-08-30 22:05:36 +00:00
sk-unix: Add more verbosity to error paths
Signed-off-by: Cyrill Gorcunov <gorcunov@openvz.org> Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
This commit is contained in:
committed by
Pavel Emelyanov
parent
5f985fbabc
commit
7a6e97b096
12
sk-unix.c
12
sk-unix.c
@@ -188,16 +188,22 @@ static int resolve_rel_name(struct unix_sk_desc *sk, const struct fd_parms *p)
|
|||||||
if (task->pid.real == p->pid)
|
if (task->pid.real == p->pid)
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
if (!task)
|
if (!task) {
|
||||||
|
pr_err("Can't find task with pid %d\n", p->pid);
|
||||||
return -ENOENT;
|
return -ENOENT;
|
||||||
|
}
|
||||||
|
|
||||||
ns = lookup_ns_by_id(task->ids->mnt_ns_id, &mnt_ns_desc);
|
ns = lookup_ns_by_id(task->ids->mnt_ns_id, &mnt_ns_desc);
|
||||||
if (!ns)
|
if (!ns) {
|
||||||
|
pr_err("Can't resolve mount namespace for pid %d\n", p->pid);
|
||||||
return -ENOENT;
|
return -ENOENT;
|
||||||
|
}
|
||||||
|
|
||||||
mntns_root = mntns_get_root_fd(ns);
|
mntns_root = mntns_get_root_fd(ns);
|
||||||
if (mntns_root < 0)
|
if (mntns_root < 0) {
|
||||||
|
pr_err("Can't resolve fs root for pid %d\n", p->pid);
|
||||||
return -ENOENT;
|
return -ENOENT;
|
||||||
|
}
|
||||||
|
|
||||||
pr_debug("Resolving relative name %s for socket %x\n",
|
pr_debug("Resolving relative name %s for socket %x\n",
|
||||||
sk->name, sk->sd.ino);
|
sk->name, sk->sd.ino);
|
||||||
|
Reference in New Issue
Block a user