Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Typedefs | Functions
vfs.h File Reference
#include "nfsfh.h"

Go to the source code of this file.

Macros

#define NFSD_MAY_NOP   0
 
#define NFSD_MAY_EXEC   0x001 /* == MAY_EXEC */
 
#define NFSD_MAY_WRITE   0x002 /* == MAY_WRITE */
 
#define NFSD_MAY_READ   0x004 /* == MAY_READ */
 
#define NFSD_MAY_SATTR   0x008
 
#define NFSD_MAY_TRUNC   0x010
 
#define NFSD_MAY_LOCK   0x020
 
#define NFSD_MAY_MASK   0x03f
 
#define NFSD_MAY_OWNER_OVERRIDE   0x040
 
#define NFSD_MAY_LOCAL_ACCESS   0x080 /* for device special files */
 
#define NFSD_MAY_BYPASS_GSS_ON_ROOT   0x100
 
#define NFSD_MAY_NOT_BREAK_LEASE   0x200
 
#define NFSD_MAY_BYPASS_GSS   0x400
 
#define NFSD_MAY_READ_IF_EXEC   0x800
 
#define NFSD_MAY_64BIT_COOKIE   0x1000 /* 64 bit readdir cookies for >= NFSv3 */
 
#define NFSD_MAY_CREATE   (NFSD_MAY_EXEC|NFSD_MAY_WRITE)
 
#define NFSD_MAY_REMOVE   (NFSD_MAY_EXEC|NFSD_MAY_WRITE|NFSD_MAY_TRUNC)
 

Typedefs

typedef int(* nfsd_dirop_t )(struct inode *, struct dentry *, int, int)
 

Functions

int fh_lock_parent (struct svc_fh *, struct dentry *)
 
int nfsd_racache_init (int)
 
void nfsd_racache_shutdown (void)
 
int nfsd_cross_mnt (struct svc_rqst *rqstp, struct dentry **dpp, struct svc_export **expp)
 
__be32 nfsd_lookup (struct svc_rqst *, struct svc_fh *, const char *, unsigned int, struct svc_fh *)
 
__be32 nfsd_lookup_dentry (struct svc_rqst *, struct svc_fh *, const char *, unsigned int, struct svc_export **, struct dentry **)
 
__be32 nfsd_setattr (struct svc_rqst *, struct svc_fh *, struct iattr *, int, time_t)
 
int nfsd_mountpoint (struct dentry *, struct svc_export *)
 
__be32 nfsd_create (struct svc_rqst *, struct svc_fh *, char *name, int len, struct iattr *attrs, int type, dev_t rdev, struct svc_fh *res)
 
__be32 nfsd_open (struct svc_rqst *, struct svc_fh *, umode_t, int, struct file **)
 
void nfsd_close (struct file *)
 
__be32 nfsd_read (struct svc_rqst *, struct svc_fh *, loff_t, struct kvec *, int, unsigned long *)
 
__be32 nfsd_read_file (struct svc_rqst *, struct svc_fh *, struct file *, loff_t, struct kvec *, int, unsigned long *)
 
__be32 nfsd_write (struct svc_rqst *, struct svc_fh *, struct file *, loff_t, struct kvec *, int, unsigned long *, int *)
 
__be32 nfsd_readlink (struct svc_rqst *, struct svc_fh *, char *, int *)
 
__be32 nfsd_symlink (struct svc_rqst *, struct svc_fh *, char *name, int len, char *path, int plen, struct svc_fh *res, struct iattr *)
 
__be32 nfsd_link (struct svc_rqst *, struct svc_fh *, char *, int, struct svc_fh *)
 
__be32 nfsd_rename (struct svc_rqst *, struct svc_fh *, char *, int, struct svc_fh *, char *, int)
 
__be32 nfsd_remove (struct svc_rqst *, struct svc_fh *, char *, int)
 
__be32 nfsd_unlink (struct svc_rqst *, struct svc_fh *, int type, char *name, int len)
 
int nfsd_truncate (struct svc_rqst *, struct svc_fh *, unsigned long size)
 
__be32 nfsd_readdir (struct svc_rqst *, struct svc_fh *, loff_t *, struct readdir_cd *, filldir_t)
 
__be32 nfsd_statfs (struct svc_rqst *, struct svc_fh *, struct kstatfs *, int access)
 
int nfsd_notify_change (struct inode *, struct iattr *)
 
__be32 nfsd_permission (struct svc_rqst *, struct svc_export *, struct dentry *, int)
 
int nfsd_sync_dir (struct dentry *dp)
 

Macro Definition Documentation

#define NFSD_MAY_64BIT_COOKIE   0x1000 /* 64 bit readdir cookies for >= NFSv3 */

Definition at line 30 of file vfs.h.

#define NFSD_MAY_BYPASS_GSS   0x400

Definition at line 27 of file vfs.h.

#define NFSD_MAY_BYPASS_GSS_ON_ROOT   0x100

Definition at line 25 of file vfs.h.

#define NFSD_MAY_CREATE   (NFSD_MAY_EXEC|NFSD_MAY_WRITE)

Definition at line 32 of file vfs.h.

#define NFSD_MAY_EXEC   0x001 /* == MAY_EXEC */

Definition at line 14 of file vfs.h.

#define NFSD_MAY_LOCAL_ACCESS   0x080 /* for device special files */

Definition at line 24 of file vfs.h.

#define NFSD_MAY_LOCK   0x020

Definition at line 19 of file vfs.h.

#define NFSD_MAY_MASK   0x03f

Definition at line 20 of file vfs.h.

#define NFSD_MAY_NOP   0

Definition at line 13 of file vfs.h.

#define NFSD_MAY_NOT_BREAK_LEASE   0x200

Definition at line 26 of file vfs.h.

#define NFSD_MAY_OWNER_OVERRIDE   0x040

Definition at line 23 of file vfs.h.

#define NFSD_MAY_READ   0x004 /* == MAY_READ */

Definition at line 16 of file vfs.h.

#define NFSD_MAY_READ_IF_EXEC   0x800

Definition at line 28 of file vfs.h.

#define NFSD_MAY_REMOVE   (NFSD_MAY_EXEC|NFSD_MAY_WRITE|NFSD_MAY_TRUNC)

Definition at line 33 of file vfs.h.

#define NFSD_MAY_SATTR   0x008

Definition at line 17 of file vfs.h.

#define NFSD_MAY_TRUNC   0x010

Definition at line 18 of file vfs.h.

#define NFSD_MAY_WRITE   0x002 /* == MAY_WRITE */

Definition at line 15 of file vfs.h.

Typedef Documentation

typedef int(* nfsd_dirop_t)(struct inode *, struct dentry *, int, int)

Definition at line 38 of file vfs.h.

Function Documentation

int fh_lock_parent ( struct svc_fh ,
struct dentry  
)
void nfsd_close ( struct file )

Definition at line 827 of file vfs.c.

__be32 nfsd_create ( struct svc_rqst ,
struct svc_fh ,
char name,
int  len,
struct iattr attrs,
int  type,
dev_t  rdev,
struct svc_fh res 
)

Definition at line 1255 of file vfs.c.

int nfsd_cross_mnt ( struct svc_rqst rqstp,
struct dentry **  dpp,
struct svc_export **  expp 
)

Definition at line 81 of file vfs.c.

__be32 nfsd_link ( struct svc_rqst ,
struct svc_fh ,
char ,
int  ,
struct svc_fh  
)

Definition at line 1671 of file vfs.c.

__be32 nfsd_lookup ( struct svc_rqst ,
struct svc_fh ,
const char ,
unsigned  int,
struct svc_fh  
)

Definition at line 246 of file vfs.c.

__be32 nfsd_lookup_dentry ( struct svc_rqst ,
struct svc_fh ,
const char ,
unsigned  int,
struct svc_export **  ,
struct dentry **   
)

Definition at line 179 of file vfs.c.

int nfsd_mountpoint ( struct dentry ,
struct svc_export  
)

Definition at line 167 of file vfs.c.

int nfsd_notify_change ( struct inode ,
struct iattr  
)
__be32 nfsd_open ( struct svc_rqst ,
struct svc_fh ,
umode_t  ,
int  ,
struct file **   
)

Definition at line 745 of file vfs.c.

__be32 nfsd_permission ( struct svc_rqst ,
struct svc_export ,
struct dentry ,
int   
)

Definition at line 2097 of file vfs.c.

int nfsd_racache_init ( int  )

Definition at line 2200 of file vfs.c.

void nfsd_racache_shutdown ( void  )

Definition at line 2179 of file vfs.c.

__be32 nfsd_read ( struct svc_rqst ,
struct svc_fh ,
loff_t  ,
struct kvec ,
int  ,
unsigned long  
)

Definition at line 1077 of file vfs.c.

__be32 nfsd_read_file ( struct svc_rqst ,
struct svc_fh ,
struct file ,
loff_t  ,
struct kvec ,
int  ,
unsigned long  
)

Definition at line 1115 of file vfs.c.

__be32 nfsd_readdir ( struct svc_rqst ,
struct svc_fh ,
loff_t *  ,
struct readdir_cd ,
filldir_t   
)

Definition at line 2035 of file vfs.c.

__be32 nfsd_readlink ( struct svc_rqst ,
struct svc_fh ,
char ,
int  
)

Definition at line 1558 of file vfs.c.

__be32 nfsd_remove ( struct svc_rqst ,
struct svc_fh ,
char ,
int   
)
__be32 nfsd_rename ( struct svc_rqst ,
struct svc_fh ,
char ,
int  ,
struct svc_fh ,
char ,
int   
)

Definition at line 1749 of file vfs.c.

__be32 nfsd_setattr ( struct svc_rqst ,
struct svc_fh ,
struct iattr ,
int  ,
time_t   
)

Definition at line 304 of file vfs.c.

__be32 nfsd_statfs ( struct svc_rqst ,
struct svc_fh ,
struct kstatfs ,
int  access 
)

Definition at line 2072 of file vfs.c.

__be32 nfsd_symlink ( struct svc_rqst ,
struct svc_fh ,
char name,
int  len,
char path,
int  plen,
struct svc_fh res,
struct iattr  
)

Definition at line 1604 of file vfs.c.

int nfsd_sync_dir ( struct dentry dp)
int nfsd_truncate ( struct svc_rqst ,
struct svc_fh ,
unsigned long  size 
)
__be32 nfsd_unlink ( struct svc_rqst ,
struct svc_fh ,
int  type,
char name,
int  len 
)

Definition at line 1855 of file vfs.c.

__be32 nfsd_write ( struct svc_rqst ,
struct svc_fh ,
struct file ,
loff_t  ,
struct kvec ,
int  ,
unsigned long ,
int  
)

Definition at line 1139 of file vfs.c.