Commit 75ebb6d0 authored by Cyrill Gorcunov's avatar Cyrill Gorcunov Committed by Pavel Emelyanov

sk-unix: Print the name of sockets being dropped

Useful for bug hunting.

 | (00.005209) unix: Dropping path /mnt/disk1/new_subvol/criu/test/zdtm/live/static/sockets00.test
 | for unlinked bound sk 0x26.0x1d4e real 0x23.0x1d4e
Signed-off-by: 's avatarCyrill Gorcunov <gorcunov@openvz.org>
Signed-off-by: 's avatarPavel Emelyanov <xemul@parallels.com>
parent f2bb77c0
...@@ -356,9 +356,10 @@ static int unix_collect_one(const struct unix_diag_msg *m, ...@@ -356,9 +356,10 @@ static int unix_collect_one(const struct unix_diag_msg *m,
if ((st.st_ino != uv->udiag_vfs_ino) || if ((st.st_ino != uv->udiag_vfs_ino) ||
(st.st_dev != kdev_to_odev(uv->udiag_vfs_dev))) { (st.st_dev != kdev_to_odev(uv->udiag_vfs_dev))) {
pr_info("unix: Dropping path for " pr_info("unix: Dropping path %s for "
"unlinked bound " "unlinked bound "
"sk %#x.%#x real %#x.%#x\n", "sk %#x.%#x real %#x.%#x\n",
name,
(int)st.st_dev, (int)st.st_dev,
(int)st.st_ino, (int)st.st_ino,
(int)uv->udiag_vfs_dev, (int)uv->udiag_vfs_dev,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment