[CRIU] [PATCH 12/19] unix: bindmount -- Show details about queuer

Cyrill Gorcunov gorcunov at gmail.com
Fri Sep 14 17:08:35 MSK 2018


Signed-off-by: Cyrill Gorcunov <gorcunov at gmail.com>
---
 criu/sk-unix.c | 10 ++++++----
 1 file changed, 6 insertions(+), 4 deletions(-)

diff --git a/criu/sk-unix.c b/criu/sk-unix.c
index 9851b381911a..0e2ea4472280 100644
--- a/criu/sk-unix.c
+++ b/criu/sk-unix.c
@@ -2313,11 +2313,13 @@ int unix_prepare_bindmount(struct mount_info *mi)
 
 	list_for_each_entry(ui, &unix_mnt_sockets, mnt_list) {
 		if (ui->ue->mnt_id == mi->mnt_id) {
-			pr_info("bindmount: id %#x ino %d type %s state %s queuer %p peer %d (name %.*s dir %s)\n",
+			pr_info("bindmount: id %#x ino %d type %s state %s (queuer id %#x ino %d) peer %d (name %.*s dir %s)\n",
 				ui->ue->id, ui->ue->ino, socket_type_name(ui->ue->type),
-				tcp_state_name(ui->ue->state), ui->queuer, ui->ue->peer,
-				(int)ui->ue->name.len, ui->ue->name.data,
-				ui->name_dir ? ui->name_dir : "-");
+				tcp_state_name(ui->ue->state),
+				ui->queuer ? ui->queuer->ue->id : -1,
+				ui->queuer ? ui->queuer->ue->ino : -1,
+				ui->ue->peer, (int)ui->ue->name.len,
+				ui->ue->name.data, ui->name_dir ? ui->name_dir : "-");
 			break;
 		}
 	}
-- 
2.17.1



More information about the CRIU mailing list