]> bbs.cooldavid.org Git - net-next-2.6.git/commit - fs/namespace.c
VFS: New /proc file /proc/self/mountstats
authorChuck Lever <cel@netapp.com>
Mon, 20 Mar 2006 18:44:12 +0000 (13:44 -0500)
committerTrond Myklebust <Trond.Myklebust@netapp.com>
Mon, 20 Mar 2006 18:44:12 +0000 (13:44 -0500)
commitb4629fe2f094b719847f31be1ee5ab38300038b2
tree158b3aabf291ef9462e3e02493fb4c45265f9e8e
parent1356b8c28d67cafd74f7e7dcfb39bf53681790a5
VFS: New /proc file /proc/self/mountstats

Create a new file under /proc/self, called mountstats, where mounted file
systems can export information (configuration options, performance counters,
and so on).  Use a mechanism similar to /proc/mounts and s_ops->show_options.

This mechanism does not violate namespace security, and is safe to use while
other processes are unmounting file systems.

Thanks to Mike Waychison for his review and comments.

Test-plan:
Test concurrent mount/unmount operations while cat'ing /proc/self/mountstats.

Signed-off-by: Chuck Lever <cel@netapp.com>
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
fs/namespace.c
fs/proc/base.c
include/linux/fs.h