[CRIU] [PATCH] mount: proc-parse -- Show @mnt_id on debug print as well

Cyrill Gorcunov gorcunov at openvz.org
Thu Oct 2 04:18:51 PDT 2014


This is convenient when need to lookup into debug prints
and check which mount point were used somewhere else
(in particular I will need @mnt_id in tty code so
 on error I can easily figure out which mountpoint has
 been used).

No func changes.

Signed-off-by: Cyrill Gorcunov <gorcunov at openvz.org>
---
 proc_parse.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/proc_parse.c b/proc_parse.c
index d63d67755249..4d8267096f1c 100644
--- a/proc_parse.c
+++ b/proc_parse.c
@@ -1001,9 +1001,9 @@ struct mount_info *parse_mountinfo(pid_t pid, struct ns_id *nsid)
 			goto err;
 		}
 
-		pr_info("\ttype %s source %s %x %s @ %s flags %x options %s\n",
+		pr_info("\ttype %s source %s mnt_id %#x s_dev %#x %s @ %s flags %#x options %s\n",
 				new->fstype->name, new->source,
-				new->s_dev, new->root, new->mountpoint,
+				new->mnt_id, new->s_dev, new->root, new->mountpoint,
 				new->flags, new->options);
 
 		if (new->fstype->parse) {
-- 
1.9.3



More information about the CRIU mailing list