diff options
author | Chuck Lever <chuck.lever@oracle.com> | 2012-05-21 22:46:07 -0400 |
---|---|---|
committer | Trond Myklebust <Trond.Myklebust@netapp.com> | 2012-05-22 16:45:47 -0400 |
commit | 4bf590e08f6db3395c181618a4c14f1c39b7c4af (patch) | |
tree | a55286e214564ef1bea4cb270258b75e849268c1 /fs/nfs/internal.h | |
parent | 8cab4c390b43fe34c07bd33799c1bc24be648122 (diff) |
NFS: Add nfs_client behavior flags
"noresvport" and "discrtry" can be passed to nfs_create_rpc_client()
by setting flags in the passed-in nfs_client. This change makes it
easy to add new flags.
Note that these settings are now "sticky" over the lifetime of a
struct nfs_client, and may even be copied when an nfs_client is
cloned.
Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Diffstat (limited to 'fs/nfs/internal.h')
-rw-r--r-- | fs/nfs/internal.h | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/fs/nfs/internal.h b/fs/nfs/internal.h index 3a9e80c9524b..547f24f17d16 100644 --- a/fs/nfs/internal.h +++ b/fs/nfs/internal.h | |||
@@ -240,8 +240,7 @@ extern int nfs4_init_ds_session(struct nfs_client *clp); | |||
240 | void nfs_close_context(struct nfs_open_context *ctx, int is_sync); | 240 | void nfs_close_context(struct nfs_open_context *ctx, int is_sync); |
241 | extern struct nfs_client *nfs_init_client(struct nfs_client *clp, | 241 | extern struct nfs_client *nfs_init_client(struct nfs_client *clp, |
242 | const struct rpc_timeout *timeparms, | 242 | const struct rpc_timeout *timeparms, |
243 | const char *ip_addr, rpc_authflavor_t authflavour, | 243 | const char *ip_addr, rpc_authflavor_t authflavour); |
244 | int noresvport); | ||
245 | 244 | ||
246 | /* dir.c */ | 245 | /* dir.c */ |
247 | extern int nfs_access_cache_shrinker(struct shrinker *shrink, | 246 | extern int nfs_access_cache_shrinker(struct shrinker *shrink, |
@@ -376,8 +375,7 @@ extern void __nfs4_read_done_cb(struct nfs_read_data *); | |||
376 | extern struct nfs_client *nfs4_init_client(struct nfs_client *clp, | 375 | extern struct nfs_client *nfs4_init_client(struct nfs_client *clp, |
377 | const struct rpc_timeout *timeparms, | 376 | const struct rpc_timeout *timeparms, |
378 | const char *ip_addr, | 377 | const char *ip_addr, |
379 | rpc_authflavor_t authflavour, | 378 | rpc_authflavor_t authflavour); |
380 | int noresvport); | ||
381 | extern int _nfs4_call_sync(struct rpc_clnt *clnt, | 379 | extern int _nfs4_call_sync(struct rpc_clnt *clnt, |
382 | struct nfs_server *server, | 380 | struct nfs_server *server, |
383 | struct rpc_message *msg, | 381 | struct rpc_message *msg, |