summaryrefslogtreecommitdiffstats
path: root/fs/nfs/inode.c
diff options
context:
space:
mode:
authorDavid Howells2006-08-23 02:06:13 +0200
committerTrond Myklebust2006-09-23 05:24:37 +0200
commit6aaca566503296a73f956908ec98173946134fe2 (patch)
tree7625bbfa14cddd93ed3e2afa03caf4b553116f76 /fs/nfs/inode.c
parentNFS: Share NFS superblocks per-protocol per-server per-FSID (diff)
downloadkernel-qcow2-linux-6aaca566503296a73f956908ec98173946134fe2.tar.gz
kernel-qcow2-linux-6aaca566503296a73f956908ec98173946134fe2.tar.xz
kernel-qcow2-linux-6aaca566503296a73f956908ec98173946134fe2.zip
NFS: Add server and volume lists to /proc
Make two new proc files available: /proc/fs/nfsfs/servers /proc/fs/nfsfs/volumes The first lists the servers with which we are currently dealing (struct nfs_client), and the second lists the volumes we have on those servers (struct nfs_server). Signed-Off-By: David Howells <dhowells@redhat.com> Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Diffstat (limited to 'fs/nfs/inode.c')
-rw-r--r--fs/nfs/inode.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/fs/nfs/inode.c b/fs/nfs/inode.c
index a547c58a83e6..cb5c65f0bc12 100644
--- a/fs/nfs/inode.c
+++ b/fs/nfs/inode.c
@@ -1141,6 +1141,10 @@ static int __init init_nfs_fs(void)
{
int err;
+ err = nfs_fs_proc_init();
+ if (err)
+ goto out5;
+
err = nfs_init_nfspagecache();
if (err)
goto out4;
@@ -1181,6 +1185,8 @@ out2:
out3:
nfs_destroy_nfspagecache();
out4:
+ nfs_fs_proc_exit();
+out5:
return err;
}
@@ -1195,6 +1201,7 @@ static void __exit exit_nfs_fs(void)
rpc_proc_unregister("nfs");
#endif
unregister_nfs_fs();
+ nfs_fs_proc_exit();
}
/* Not quite true; I just maintain it */