]> git.baikalelectronics.ru Git - kernel.git/commit
vfs: make mounts and mountstats honor root dir like mountinfo does
authorDmitry V. Levin <ldv@altlinux.org>
Tue, 16 Dec 2014 03:59:37 +0000 (06:59 +0300)
committerAl Viro <viro@zeniv.linux.org.uk>
Wed, 17 Dec 2014 13:27:15 +0000 (08:27 -0500)
commit7e1f5bd5c0c1bb0b7a93c215a56cffb025ee942d
tree6ab682d37fb472d76c8593f72168c5c58b1479a1
parentd677e84a3b37db3f53f9a3fea741f78ff1821885
vfs: make mounts and mountstats honor root dir like mountinfo does

As we already show mountpoints relative to the root directory, thanks
to the change made back in 2000, change show_vfsmnt() and show_vfsstat()
to skip out-of-root mountpoints the same way as show_mountinfo() does.

Signed-off-by: Dmitry V. Levin <ldv@altlinux.org>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
fs/proc_namespace.c