diff options
author | Bryan Schumaker <bjschuma@netapp.com> | 2012-07-30 16:05:18 -0400 |
---|---|---|
committer | Trond Myklebust <Trond.Myklebust@netapp.com> | 2012-07-30 19:04:53 -0400 |
commit | ff9099f26645818563c8d396a154c2ce6ee422eb (patch) | |
tree | fdd310643049dfe4105d4cee39024f543c673555 /fs/nfs/internal.h | |
parent | e8f25e6d6d198dca7d09d8fe2c24ba3b9683bb24 (diff) |
NFS: Create a try_mount rpc op
I'm already looking up the nfs subversion in nfs_fs_mount(), so I have
easy access to rpc_ops that used to be difficult to reach. This allows
me to set up a different mount path for NFS v2/3 and NFS v4.
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.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/nfs/internal.h b/fs/nfs/internal.h index ac936476b3bc..3364eccd17ef 100644 --- a/fs/nfs/internal.h +++ b/fs/nfs/internal.h | |||
@@ -328,6 +328,8 @@ extern struct file_system_type nfs_xdev_fs_type; | |||
328 | extern struct file_system_type nfs4_xdev_fs_type; | 328 | extern struct file_system_type nfs4_xdev_fs_type; |
329 | extern struct file_system_type nfs4_referral_fs_type; | 329 | extern struct file_system_type nfs4_referral_fs_type; |
330 | #endif | 330 | #endif |
331 | struct dentry *nfs_try_mount(int, const char *, struct nfs_mount_info *, | ||
332 | struct nfs_subversion *); | ||
331 | void nfs_initialise_sb(struct super_block *); | 333 | void nfs_initialise_sb(struct super_block *); |
332 | int nfs_set_sb_security(struct super_block *, struct dentry *, struct nfs_mount_info *); | 334 | int nfs_set_sb_security(struct super_block *, struct dentry *, struct nfs_mount_info *); |
333 | int nfs_clone_sb_security(struct super_block *, struct dentry *, struct nfs_mount_info *); | 335 | int nfs_clone_sb_security(struct super_block *, struct dentry *, struct nfs_mount_info *); |