mirror of
https://github.com/checkpoint-restore/criu.git
synced 2026-01-23 02:14:37 +00:00
sk-unix: add some missed error printing
In Virtuozzo tests we have seen uninformative errors: (26.575039) 151187 fdinfo 6: pos: 0 flags: 2/0 (26.575076) sockets: Searching for socket 0x346d1 family 1 (666.230281 ---------------------------------------- (666.230586 Error (criu/cr-dump.c:1850): Dump files (pid: 151187) failed with -1 So let's add some error messages to this stack. Signed-off-by: Pavel Tikhomirov <ptikhomirov@virtuozzo.com>
This commit is contained in:
parent
a0158e6927
commit
66fd45d51d
1 changed files with 2 additions and 0 deletions
|
|
@ -595,12 +595,14 @@ static int unix_resolve_name_old(int lfd, uint32_t id, struct unix_sk_desc *d, U
|
|||
else
|
||||
ns = lookup_ns_by_id(root_item->ids->mnt_ns_id, &mnt_ns_desc);
|
||||
if (!ns) {
|
||||
pr_err("Failed to lookup ns by mnt id %d\n", ue->mnt_id);
|
||||
ret = -ENOENT;
|
||||
goto out;
|
||||
}
|
||||
|
||||
mntns_root = mntns_get_root_fd(ns);
|
||||
if (mntns_root < 0) {
|
||||
pr_err("Failed to lookup mntns root for ns %d\n", ns->id);
|
||||
ret = -ENOENT;
|
||||
goto out;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue