Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
nfs4client.c File Reference
#include <linux/module.h>
#include <linux/nfs_fs.h>
#include <linux/nfs_idmap.h>
#include <linux/nfs_mount.h>
#include <linux/sunrpc/auth.h>
#include <linux/sunrpc/xprt.h>
#include <linux/sunrpc/bc_xprt.h>
#include "internal.h"
#include "callback.h"
#include "delegation.h"
#include "pnfs.h"
#include "netns.h"

Go to the source code of this file.

Macros

#define NFSDBG_FACILITY   NFSDBG_CLIENT
 

Functions

struct nfs_clientnfs4_alloc_client (const struct nfs_client_initdata *cl_init)
 
void nfs4_free_client (struct nfs_client *clp)
 
struct nfs_clientnfs4_init_client (struct nfs_client *clp, const struct rpc_timeout *timeparms, const char *ip_addr, rpc_authflavor_t authflavour)
 
int nfs40_walk_client_list (struct nfs_client *new, struct nfs_client **result, struct rpc_cred *cred)
 
struct nfs_clientnfs4_find_client_ident (struct net *net, int cb_ident)
 
struct nfs_clientnfs4_find_client_sessionid (struct net *net, const struct sockaddr *addr, struct nfs4_sessionid *sid)
 
struct nfs_clientnfs4_set_ds_client (struct nfs_client *mds_clp, const struct sockaddr *ds_addr, int ds_addrlen, int ds_proto, unsigned int ds_timeo, unsigned int ds_retrans)
 
 EXPORT_SYMBOL_GPL (nfs4_set_ds_client)
 
struct nfs_servernfs4_create_server (struct nfs_mount_info *mount_info, struct nfs_subversion *nfs_mod)
 
struct nfs_servernfs4_create_referral_server (struct nfs_clone_mount *data, struct nfs_fh *mntfh)
 

Macro Definition Documentation

#define NFSDBG_FACILITY   NFSDBG_CLIENT

Definition at line 18 of file nfs4client.c.

Function Documentation

EXPORT_SYMBOL_GPL ( nfs4_set_ds_client  )
int nfs40_walk_client_list ( struct nfs_client new,
struct nfs_client **  result,
struct rpc_cred *  cred 
)

nfs40_walk_client_list - Find server that recognizes a client ID

: nfs_client with client ID to test

Returns
: OUT: found nfs_client, or new : credential to use for trunking test

Returns zero, a negative errno, or a negative NFS4ERR status. If zero is returned, an nfs_client pointer is planted in "result."

NB: nfs40_walk_client_list() relies on the new nfs_client being the last nfs_client on the list.

Definition at line 298 of file nfs4client.c.

struct nfs_client* nfs4_alloc_client ( const struct nfs_client_initdata cl_init)
read

Definition at line 57 of file nfs4client.c.

struct nfs_server* nfs4_create_referral_server ( struct nfs_clone_mount data,
struct nfs_fh mntfh 
)
read

Definition at line 861 of file nfs4client.c.

struct nfs_server* nfs4_create_server ( struct nfs_mount_info mount_info,
struct nfs_subversion nfs_mod 
)
read

Definition at line 828 of file nfs4client.c.

struct nfs_client* nfs4_find_client_ident ( struct net net,
int  cb_ident 
)
read

Definition at line 509 of file nfs4client.c.

struct nfs_client* nfs4_find_client_sessionid ( struct net net,
const struct sockaddr addr,
struct nfs4_sessionid sid 
)
read

Definition at line 586 of file nfs4client.c.

void nfs4_free_client ( struct nfs_client clp)

Definition at line 105 of file nfs4client.c.

struct nfs_client* nfs4_init_client ( struct nfs_client clp,
const struct rpc_timeout *  timeparms,
const char ip_addr,
rpc_authflavor_t  authflavour 
)
read

nfs4_init_client - Initialise an NFS4 client record

: nfs_client to initialise : timeout parameters for underlying RPC transport : callback IP address in presentation format : authentication flavor for underlying RPC transport

Returns pointer to an NFS client, or an ERR_PTR value.

Definition at line 182 of file nfs4client.c.

struct nfs_client* nfs4_set_ds_client ( struct nfs_client mds_clp,
const struct sockaddr ds_addr,
int  ds_addrlen,
int  ds_proto,
unsigned int  ds_timeo,
unsigned int  ds_retrans 
)
read

Definition at line 656 of file nfs4client.c.