]> git.proxmox.com Git - mirror_ubuntu-zesty-kernel.git/commit - fs/nsfs.c
nsfs: Add a show_path method to fix mountinfo
authorEric W. Biederman <ebiederm@xmission.com>
Sun, 24 May 2015 17:49:04 +0000 (12:49 -0500)
committerEric W. Biederman <ebiederm@xmission.com>
Sat, 11 Jul 2015 16:09:00 +0000 (11:09 -0500)
commit75509fd88fbd580c793780b0001c71c3510f2726
treebb9f7f285f5db2a50cc7cfc1d87a369c9f7e4314
parent77b1a97d218277d55a15016826d1fd79290f1df2
nsfs: Add a show_path method to fix mountinfo

Today mountinfo displays a very unhelpful "/" for nsfs files.  Add a
show_path method returning the same string as ns_dname.  This results
in a bind mount of /proc/<pid>/ns/net showing up in /proc/<pid>/mountinfo as
"net:[1234...]" instead of "/".

Signed-off-by: "Eric W. Biederman" <ebiederm@xmission.com>
fs/nsfs.c