mirror of
https://github.com/checkpoint-restore/criu
synced 2025-08-30 05:48:05 +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:
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)
|
||||
break;
|
||||
}
|
||||
if (!task)
|
||||
if (!task) {
|
||||
pr_err("Can't find task with pid %d\n", p->pid);
|
||||
return -ENOENT;
|
||||
}
|
||||
|
||||
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;
|
||||
}
|
||||
|
||||
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;
|
||||
}
|
||||
|
||||
pr_debug("Resolving relative name %s for socket %x\n",
|
||||
sk->name, sk->sd.ino);
|
||||
|
Loading…
x
Reference in New Issue
Block a user