aboutsummaryrefslogtreecommitdiffstats
path: root/fs/nfs/internal.h
diff options
context:
space:
mode:
authorBryan Schumaker <bjschuma@netapp.com>2012-07-30 16:05:16 -0400
committerTrond Myklebust <Trond.Myklebust@netapp.com>2012-07-30 19:04:17 -0400
commitab7017a3a0a64b953e091619c30413b3721d925d (patch)
tree1ec947c2794b217d7ead01ee29d8cc5aae4c51f8 /fs/nfs/internal.h
parenta427b9ec4eda8cd6e641ea24541d30b641fc3140 (diff)
NFS: Add version registering framework
This patch adds in the code to track multiple versions of the NFS protocol. I created default structures for v2, v3 and v4 so that each version can continue to work while I convert them into kernel modules. I also removed the const parameter from the rpc_version array so that I can change it at runtime. Signed-off-by: Bryan Schumaker <bjschuma@netapp.com> Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Diffstat (limited to 'fs/nfs/internal.h')
-rw-r--r--fs/nfs/internal.h10
1 files changed, 6 insertions, 4 deletions
diff --git a/fs/nfs/internal.h b/fs/nfs/internal.h
index cfafd13b6fe9..ac936476b3bc 100644
--- a/fs/nfs/internal.h
+++ b/fs/nfs/internal.h
@@ -90,7 +90,7 @@ struct nfs_client_initdata {
90 const char *hostname; 90 const char *hostname;
91 const struct sockaddr *addr; 91 const struct sockaddr *addr;
92 size_t addrlen; 92 size_t addrlen;
93 const struct nfs_rpc_ops *rpc_ops; 93 struct nfs_subversion *nfs_mod;
94 int proto; 94 int proto;
95 u32 minorversion; 95 u32 minorversion;
96 struct net *net; 96 struct net *net;
@@ -189,7 +189,8 @@ nfs4_find_client_sessionid(struct net *, const struct sockaddr *,
189 struct nfs4_sessionid *); 189 struct nfs4_sessionid *);
190extern struct nfs_server *nfs_create_server( 190extern struct nfs_server *nfs_create_server(
191 const struct nfs_parsed_mount_data *, 191 const struct nfs_parsed_mount_data *,
192 struct nfs_fh *); 192 struct nfs_fh *,
193 struct nfs_subversion *);
193extern struct nfs_server *nfs4_create_server( 194extern struct nfs_server *nfs4_create_server(
194 const struct nfs_parsed_mount_data *, 195 const struct nfs_parsed_mount_data *,
195 struct nfs_fh *); 196 struct nfs_fh *);
@@ -321,6 +322,7 @@ void nfs_zap_acl_cache(struct inode *inode);
321extern int nfs_wait_bit_killable(void *word); 322extern int nfs_wait_bit_killable(void *word);
322 323
323/* super.c */ 324/* super.c */
325extern struct file_system_type nfs_fs_type;
324extern struct file_system_type nfs_xdev_fs_type; 326extern struct file_system_type nfs_xdev_fs_type;
325#ifdef CONFIG_NFS_V4 327#ifdef CONFIG_NFS_V4
326extern struct file_system_type nfs4_xdev_fs_type; 328extern struct file_system_type nfs4_xdev_fs_type;
@@ -329,8 +331,8 @@ extern struct file_system_type nfs4_referral_fs_type;
329void nfs_initialise_sb(struct super_block *); 331void nfs_initialise_sb(struct super_block *);
330int nfs_set_sb_security(struct super_block *, struct dentry *, struct nfs_mount_info *); 332int nfs_set_sb_security(struct super_block *, struct dentry *, struct nfs_mount_info *);
331int nfs_clone_sb_security(struct super_block *, struct dentry *, struct nfs_mount_info *); 333int nfs_clone_sb_security(struct super_block *, struct dentry *, struct nfs_mount_info *);
332struct dentry *nfs_fs_mount_common(struct file_system_type *, struct nfs_server *, 334struct dentry *nfs_fs_mount_common(struct nfs_server *, int, const char *,
333 int, const char *, struct nfs_mount_info *); 335 struct nfs_mount_info *, struct nfs_subversion *);
334struct dentry *nfs_fs_mount(struct file_system_type *, int, const char *, void *); 336struct dentry *nfs_fs_mount(struct file_system_type *, int, const char *, void *);
335struct dentry * nfs_xdev_mount_common(struct file_system_type *, int, 337struct dentry * nfs_xdev_mount_common(struct file_system_type *, int,
336 const char *, struct nfs_mount_info *); 338 const char *, struct nfs_mount_info *);