Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions | Variables
nfs4proc.c File Reference
#include <linux/mm.h>
#include <linux/delay.h>
#include <linux/errno.h>
#include <linux/string.h>
#include <linux/ratelimit.h>
#include <linux/printk.h>
#include <linux/slab.h>
#include <linux/sunrpc/clnt.h>
#include <linux/nfs.h>
#include <linux/nfs4.h>
#include <linux/nfs_fs.h>
#include <linux/nfs_page.h>
#include <linux/nfs_mount.h>
#include <linux/namei.h>
#include <linux/mount.h>
#include <linux/module.h>
#include <linux/nfs_idmap.h>
#include <linux/sunrpc/bc_xprt.h>
#include <linux/xattr.h>
#include <linux/utsname.h>
#include <linux/freezer.h>
#include "nfs4_fs.h"
#include "delegation.h"
#include "internal.h"
#include "iostat.h"
#include "callback.h"
#include "pnfs.h"
#include "netns.h"

Go to the source code of this file.

Data Structures

struct  nfs4_opendata
 
struct  nfs4_closedata
 
struct  nfs4_createdata
 
struct  nfs4_renewdata
 
struct  nfs4_cached_acl
 
struct  nfs4_delegreturndata
 
struct  nfs4_unlockdata
 
struct  nfs4_lockdata
 
struct  nfs_release_lockowner_data
 

Macros

#define NFSDBG_FACILITY   NFSDBG_PROC
 
#define NFS4_POLL_RETRY_MIN   (HZ/10)
 
#define NFS4_POLL_RETRY_MAX   (15*HZ)
 
#define NFS4_MAX_LOOP_ON_RECOVER   (10)
 
#define NFS4ACL_MAXPAGES   DIV_ROUND_UP(XATTR_SIZE_MAX, PAGE_SIZE)
 
#define NFS4_LOCK_MINTIMEOUT   (1 * HZ)
 
#define NFS4_LOCK_MAXTIMEOUT   (30 * HZ)
 
#define XATTR_NAME_NFSV4_ACL   "system.nfs4_acl"
 

Functions

int _nfs4_call_sync (struct rpc_clnt *clnt, struct nfs_server *server, struct rpc_message *msg, struct nfs4_sequence_args *args, struct nfs4_sequence_res *res, int cache_reply)
 
int nfs4_open_delegation_recall (struct nfs_open_context *ctx, struct nfs4_state *state, const nfs4_stateid *stateid)
 
int nfs4_do_close (struct nfs4_state *state, gfp_t gfp_mask, int wait)
 
int nfs4_server_capabilities (struct nfs_server *server, struct nfs_fh *fhandle)
 
int nfs4_proc_get_rootfh (struct nfs_server *server, struct nfs_fh *fhandle, struct nfs_fsinfo *info)
 
struct rpc_clntnfs4_proc_lookup_mountpoint (struct inode *dir, struct qstr *name, struct nfs_fh *fhandle, struct nfs_fattr *fattr)
 
void __nfs4_read_done_cb (struct nfs_read_data *data)
 
int nfs4_proc_setclientid (struct nfs_client *clp, u32 program, unsigned short port, struct rpc_cred *cred, struct nfs4_setclientid_res *res)
 
int nfs4_proc_setclientid_confirm (struct nfs_client *clp, struct nfs4_setclientid_res *arg, struct rpc_cred *cred)
 
int nfs4_proc_delegreturn (struct inode *inode, struct rpc_cred *cred, const nfs4_stateid *stateid, int issync)
 
int nfs4_lock_delegation_recall (struct nfs4_state *state, struct file_lock *fl)
 
int nfs4_release_lockowner (struct nfs4_lock_state *lsp)
 
int nfs4_proc_fs_locations (struct rpc_clnt *client, struct inode *dir, const struct qstr *name, struct nfs4_fs_locations *fs_locations, struct page *page)
 
int nfs4_proc_secinfo (struct inode *dir, const struct qstr *name, struct nfs4_secinfo_flavors *flavors)
 

Variables

const u32 nfs4_fattr_bitmap [3]
 
const u32 nfs4_statfs_bitmap [2]
 
const u32 nfs4_pathconf_bitmap [2]
 
const u32 nfs4_fsinfo_bitmap [3]
 
const u32 nfs4_fs_locations_bitmap [2]
 
struct nfs4_minor_version_ops * nfs_v4_minor_ops []
 
struct inode_operations nfs4_dir_inode_operations
 
struct nfs_rpc_ops nfs_v4_clientops
 
struct xattr_handlernfs4_xattr_handlers []
 

Macro Definition Documentation

#define NFS4_LOCK_MAXTIMEOUT   (30 * HZ)

Definition at line 4384 of file nfs4proc.c.

#define NFS4_LOCK_MINTIMEOUT   (1 * HZ)

Definition at line 4383 of file nfs4proc.c.

#define NFS4_MAX_LOOP_ON_RECOVER   (10)

Definition at line 73 of file nfs4proc.c.

#define NFS4_POLL_RETRY_MAX   (15*HZ)

Definition at line 71 of file nfs4proc.c.

#define NFS4_POLL_RETRY_MIN   (HZ/10)

Definition at line 70 of file nfs4proc.c.

#define NFS4ACL_MAXPAGES   DIV_ROUND_UP(XATTR_SIZE_MAX, PAGE_SIZE)

Definition at line 3775 of file nfs4proc.c.

#define NFSDBG_FACILITY   NFSDBG_PROC

Definition at line 68 of file nfs4proc.c.

#define XATTR_NAME_NFSV4_ACL   "system.nfs4_acl"

Definition at line 5166 of file nfs4proc.c.

Function Documentation

void __nfs4_read_done_cb ( struct nfs_read_data data)

Definition at line 3526 of file nfs4proc.c.

int _nfs4_call_sync ( struct rpc_clnt clnt,
struct nfs_server server,
struct rpc_message msg,
struct nfs4_sequence_args args,
struct nfs4_sequence_res res,
int  cache_reply 
)

Definition at line 780 of file nfs4proc.c.

int nfs4_do_close ( struct nfs4_state *  state,
gfp_t  gfp_mask,
int  wait 
)

Definition at line 2325 of file nfs4proc.c.

int nfs4_lock_delegation_recall ( struct nfs4_state *  state,
struct file_lock fl 
)

Definition at line 5060 of file nfs4proc.c.

int nfs4_open_delegation_recall ( struct nfs_open_context ctx,
struct nfs4_state *  state,
const nfs4_stateid stateid 
)

Definition at line 1412 of file nfs4proc.c.

int nfs4_proc_delegreturn ( struct inode inode,
struct rpc_cred *  cred,
const nfs4_stateid stateid,
int  issync 
)

Definition at line 4365 of file nfs4proc.c.

int nfs4_proc_fs_locations ( struct rpc_clnt client,
struct inode dir,
const struct qstr name,
struct nfs4_fs_locations *  fs_locations,
struct page page 
)

Definition at line 5260 of file nfs4proc.c.

int nfs4_proc_get_rootfh ( struct nfs_server server,
struct nfs_fh fhandle,
struct nfs_fsinfo info 
)

Definition at line 2564 of file nfs4proc.c.

struct rpc_clnt* nfs4_proc_lookup_mountpoint ( struct inode dir,
struct qstr name,
struct nfs_fh fhandle,
struct nfs_fattr fattr 
)
read

Definition at line 2832 of file nfs4proc.c.

int nfs4_proc_secinfo ( struct inode dir,
const struct qstr name,
struct nfs4_secinfo_flavors *  flavors 
)

Definition at line 5297 of file nfs4proc.c.

int nfs4_proc_setclientid ( struct nfs_client clp,
u32  program,
unsigned short  port,
struct rpc_cred *  cred,
struct nfs4_setclientid_res *  res 
)

nfs4_proc_setclientid - Negotiate client ID : state data structure : RPC program for NFSv4 callback service : IP port number for NFS4 callback service : RPC credential to use for this call : where to place the result

Returns zero, a negative errno, or a negative NFS4ERR status code.

Definition at line 4165 of file nfs4proc.c.

int nfs4_proc_setclientid_confirm ( struct nfs_client clp,
struct nfs4_setclientid_res *  arg,
struct rpc_cred *  cred 
)

nfs4_proc_setclientid_confirm - Confirm client ID : state data structure : result of a previous SETCLIENTID : RPC credential to use for this call

Returns zero, a negative errno, or a negative NFS4ERR status code.

Definition at line 4222 of file nfs4proc.c.

int nfs4_release_lockowner ( struct nfs4_lock_state lsp)

Definition at line 5143 of file nfs4proc.c.

int nfs4_server_capabilities ( struct nfs_server server,
struct nfs_fh fhandle 
)

Definition at line 2461 of file nfs4proc.c.

Variable Documentation

struct inode_operations nfs4_dir_inode_operations
Initial value:
= {
.create = nfs_create,
.lookup = nfs_lookup,
.atomic_open = nfs_atomic_open,
.link = nfs_link,
.unlink = nfs_unlink,
.symlink = nfs_symlink,
.mkdir = nfs_mkdir,
.rmdir = nfs_rmdir,
.mknod = nfs_mknod,
.rename = nfs_rename,
.permission = nfs_permission,
.getattr = nfs_getattr,
.setattr = nfs_setattr,
.getxattr = generic_getxattr,
.setxattr = generic_setxattr,
.listxattr = generic_listxattr,
.removexattr = generic_removexattr,
}

Definition at line 7060 of file nfs4proc.c.

const u32 nfs4_fattr_bitmap[3]
const u32 nfs4_fs_locations_bitmap[2]
const u32 nfs4_fsinfo_bitmap[3]
const u32 nfs4_pathconf_bitmap[2]
Initial value:

Definition at line 170 of file nfs4proc.c.

const u32 nfs4_statfs_bitmap[2]
struct xattr_handler* nfs4_xattr_handlers[]
Initial value:
= {
&nfs4_xattr_nfs4_acl_handler,
}

Definition at line 7155 of file nfs4proc.c.

struct nfs_rpc_ops nfs_v4_clientops

Definition at line 7090 of file nfs4proc.c.

struct nfs4_minor_version_ops* nfs_v4_minor_ops[]
Initial value:
= {
[0] = &nfs_v4_0_minor_ops,
}

Definition at line 7053 of file nfs4proc.c.