Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Typedefs | Enumerations | Functions | Variables
nfs4proc.c File Reference
#include <linux/file.h>
#include <linux/slab.h>
#include "idmap.h"
#include "cache.h"
#include "xdr4.h"
#include "vfs.h"
#include "current_stateid.h"

Go to the source code of this file.

Data Structures

struct  nfsd4_operation
 
struct  nfsd4_voidargs
 

Macros

#define NFSDDBG_FACILITY   NFSDDBG_PROC
 
#define op_encode_hdr_size   (2)
 
#define op_encode_stateid_maxsz   (XDR_QUADLEN(NFS4_STATEID_SIZE))
 
#define op_encode_verifier_maxsz   (XDR_QUADLEN(NFS4_VERIFIER_SIZE))
 
#define op_encode_change_info_maxsz   (5)
 
#define nfs4_fattr_bitmap_maxsz   (4)
 
#define op_encode_lockowner_maxsz   (1 + XDR_QUADLEN(IDMAP_NAMESZ))
 
#define op_encode_lock_denied_maxsz   (8 + op_encode_lockowner_maxsz)
 
#define nfs4_owner_maxsz   (1 + XDR_QUADLEN(IDMAP_NAMESZ))
 
#define op_encode_ace_maxsz   (3 + nfs4_owner_maxsz)
 
#define op_encode_delegation_maxsz
 
#define op_encode_channel_attrs_maxsz   (6 + 1 + 1)
 
#define nfsd4_voidres   nfsd4_voidargs
 

Typedefs

typedef __be32(* nfsd4op_func )(struct svc_rqst *, struct nfsd4_compound_state *, void *)
 
typedef u32(* nfsd4op_rsize )(struct svc_rqst *, struct nfsd4_op *op)
 
typedef void(* stateid_setter )(struct nfsd4_compound_state *, void *)
 
typedef void(* stateid_getter )(struct nfsd4_compound_state *, void *)
 

Enumerations

enum  nfsd4_op_flags {
  ALLOWED_WITHOUT_FH = 1 << 0, ALLOWED_ON_ABSENT_FS = 1 << 1, ALLOWED_AS_FIRST_OP = 1 << 2, OP_HANDLES_WRONGSEC = 1 << 3,
  OP_IS_PUTFH_LIKE = 1 << 4, OP_MODIFIES_SOMETHING = 1 << 5, OP_CACHEME = 1 << 6, OP_CLEAR_STATEID = 1 << 7
}
 

Functions

bool nfsd4_cache_this_op (struct nfsd4_op *op)
 

Variables

struct svc_version nfsd_version4
 

Macro Definition Documentation

#define nfs4_fattr_bitmap_maxsz   (4)

Definition at line 1307 of file nfs4proc.c.

#define nfs4_owner_maxsz   (1 + XDR_QUADLEN(IDMAP_NAMESZ))

Definition at line 1312 of file nfs4proc.c.

#define nfsd4_voidres   nfsd4_voidargs

Definition at line 1735 of file nfs4proc.c.

#define NFSDDBG_FACILITY   NFSDDBG_PROC

Definition at line 44 of file nfs4proc.c.

#define op_encode_ace_maxsz   (3 + nfs4_owner_maxsz)

Definition at line 1314 of file nfs4proc.c.

#define op_encode_change_info_maxsz   (5)

Definition at line 1306 of file nfs4proc.c.

#define op_encode_channel_attrs_maxsz   (6 + 1 + 1)

Definition at line 1318 of file nfs4proc.c.

#define op_encode_delegation_maxsz
Value:
op_encode_ace_maxsz)

Definition at line 1315 of file nfs4proc.c.

#define op_encode_hdr_size   (2)

Definition at line 1303 of file nfs4proc.c.

#define op_encode_lock_denied_maxsz   (8 + op_encode_lockowner_maxsz)

Definition at line 1310 of file nfs4proc.c.

#define op_encode_lockowner_maxsz   (1 + XDR_QUADLEN(IDMAP_NAMESZ))

Definition at line 1309 of file nfs4proc.c.

#define op_encode_stateid_maxsz   (XDR_QUADLEN(NFS4_STATEID_SIZE))

Definition at line 1304 of file nfs4proc.c.

#define op_encode_verifier_maxsz   (XDR_QUADLEN(NFS4_VERIFIER_SIZE))

Definition at line 1305 of file nfs4proc.c.

Typedef Documentation

typedef __be32(* nfsd4op_func)(struct svc_rqst *, struct nfsd4_compound_state *, void *)

Definition at line 1015 of file nfs4proc.c.

typedef u32(* nfsd4op_rsize)(struct svc_rqst *, struct nfsd4_op *op)

Definition at line 1017 of file nfs4proc.c.

typedef void(* stateid_getter)(struct nfsd4_compound_state *, void *)

Definition at line 1019 of file nfs4proc.c.

typedef void(* stateid_setter)(struct nfsd4_compound_state *, void *)

Definition at line 1018 of file nfs4proc.c.

Enumeration Type Documentation

Enumerator:
ALLOWED_WITHOUT_FH 
ALLOWED_ON_ABSENT_FS 
ALLOWED_AS_FIRST_OP 
OP_HANDLES_WRONGSEC 
OP_IS_PUTFH_LIKE 
OP_MODIFIES_SOMETHING 
OP_CACHEME 
OP_CLEAR_STATEID 

Definition at line 1021 of file nfs4proc.c.

Function Documentation

bool nfsd4_cache_this_op ( struct nfsd4_op op)

Definition at line 1105 of file nfs4proc.c.

Variable Documentation

struct svc_version nfsd_version4
Initial value:
= {
.vs_vers = 4,
.vs_nproc = 2,
.vs_proc = nfsd_procedures4,
.vs_dispatch = nfsd_dispatch,
.vs_xdrsize = NFS4_SVC_XDRSIZE,
}

Definition at line 1759 of file nfs4proc.c.