diff options
author | David Howells <dhowells@redhat.com> | 2006-08-22 20:06:13 -0400 |
---|---|---|
committer | Trond Myklebust <Trond.Myklebust@netapp.com> | 2006-09-22 23:24:37 -0400 |
commit | 6aaca566503296a73f956908ec98173946134fe2 (patch) | |
tree | 7625bbfa14cddd93ed3e2afa03caf4b553116f76 /fs/nfs/internal.h | |
parent | 54ceac4515986030c2502960be620198dd8fe25b (diff) |
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/internal.h')
-rw-r--r-- | fs/nfs/internal.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/fs/nfs/internal.h b/fs/nfs/internal.h index e73ba4f1052a..bea0b016bd70 100644 --- a/fs/nfs/internal.h +++ b/fs/nfs/internal.h | |||
@@ -47,6 +47,18 @@ extern void nfs_free_server(struct nfs_server *server); | |||
47 | extern struct nfs_server *nfs_clone_server(struct nfs_server *, | 47 | extern struct nfs_server *nfs_clone_server(struct nfs_server *, |
48 | struct nfs_fh *, | 48 | struct nfs_fh *, |
49 | struct nfs_fattr *); | 49 | struct nfs_fattr *); |
50 | #ifdef CONFIG_PROC_FS | ||
51 | extern int __init nfs_fs_proc_init(void); | ||
52 | extern void nfs_fs_proc_exit(void); | ||
53 | #else | ||
54 | static inline int nfs_fs_proc_init(void) | ||
55 | { | ||
56 | return 0; | ||
57 | } | ||
58 | static inline void nfs_fs_proc_exit(void) | ||
59 | { | ||
60 | } | ||
61 | #endif | ||
50 | 62 | ||
51 | /* nfs4namespace.c */ | 63 | /* nfs4namespace.c */ |
52 | #ifdef CONFIG_NFS_V4 | 64 | #ifdef CONFIG_NFS_V4 |