Commit 57db932a authored by Oleg Nesterov's avatar Oleg Nesterov Committed by Pavel Emelyanov

mount: always report ->mnt_id as decimal

validate_mounts() prints ->mnt_id in hex when it reports the failure.
This complicates the understanding because this ->mnt_id is printed as
decimal elsewhere, including /proc/$pid/mountinfo.

parse_mountinfo() adds "0x" at least and this is just pr_info(), but
lets change it too.
Signed-off-by: 's avatarOleg Nesterov <oleg@redhat.com>
Acked-by: 's avatarAndrew Vagin <avagin@openvz.org>
Acked-by: 's avatarCyrill Gorcunov <gorcunov@openvz.org>
Signed-off-by: 's avatarPavel Emelyanov <xemul@parallels.com>
parent 8329f061
...@@ -591,7 +591,7 @@ static int validate_mounts(struct mount_info *info, bool for_dump) ...@@ -591,7 +591,7 @@ static int validate_mounts(struct mount_info *info, bool for_dump)
if (fsroot_mounted(m)) { if (fsroot_mounted(m)) {
if (m->fstype->code == FSTYPE__UNSUPPORTED) { if (m->fstype->code == FSTYPE__UNSUPPORTED) {
pr_err("FS mnt %s dev %#x root %s unsupported id %x\n", pr_err("FS mnt %s dev %#x root %s unsupported id %d\n",
m->mountpoint, m->s_dev, m->root, m->mnt_id); m->mountpoint, m->s_dev, m->root, m->mnt_id);
return -1; return -1;
} }
......
...@@ -1034,7 +1034,7 @@ struct mount_info *parse_mountinfo(pid_t pid, struct ns_id *nsid) ...@@ -1034,7 +1034,7 @@ struct mount_info *parse_mountinfo(pid_t pid, struct ns_id *nsid)
goto err; goto err;
} }
pr_info("\ttype %s source %s mnt_id %#x s_dev %#x %s @ %s flags %#x options %s\n", pr_info("\ttype %s source %s mnt_id %d s_dev %#x %s @ %s flags %#x options %s\n",
fst ? : new->fstype->name, new->source, fst ? : new->fstype->name, new->source,
new->mnt_id, new->s_dev, new->root, new->mountpoint, new->mnt_id, new->s_dev, new->root, new->mountpoint,
new->flags, new->options); new->flags, new->options);
......
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