Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Enumerations | Functions
nfsfh.h File Reference
#include <linux/nfsd/nfsfh.h>

Go to the source code of this file.

Macros

#define fill_pre_wcc(ignored)
 
#define fill_post_wcc(notused)
 

Enumerations

enum  nfsd_fsid {
  FSID_DEV = 0, FSID_NUM, FSID_MAJOR_MINOR, FSID_ENCODE_DEV,
  FSID_UUID4_INUM, FSID_UUID8, FSID_UUID16, FSID_UUID16_INUM
}
 
enum  fsid_source { FSIDSOURCE_DEV, FSIDSOURCE_FSID, FSIDSOURCE_UUID }
 

Functions

enum fsid_source fsid_source (struct svc_fh *fhp)
 
charSVCFH_fmt (struct svc_fh *fhp)
 
__be32 fh_verify (struct svc_rqst *, struct svc_fh *, umode_t, int)
 
__be32 fh_compose (struct svc_fh *, struct svc_export *, struct dentry *, struct svc_fh *)
 
__be32 fh_update (struct svc_fh *)
 
void fh_put (struct svc_fh *)
 

Macro Definition Documentation

#define fill_post_wcc (   notused)

Definition at line 156 of file nfsfh.h.

#define fill_pre_wcc (   ignored)

Definition at line 155 of file nfsfh.h.

Enumeration Type Documentation

Enumerator:
FSIDSOURCE_DEV 
FSIDSOURCE_FSID 
FSIDSOURCE_UUID 

Definition at line 19 of file nfsfh.h.

enum nfsd_fsid
Enumerator:
FSID_DEV 
FSID_NUM 
FSID_MAJOR_MINOR 
FSID_ENCODE_DEV 
FSID_UUID4_INUM 
FSID_UUID8 
FSID_UUID16 
FSID_UUID16_INUM 

Definition at line 8 of file nfsfh.h.

Function Documentation

__be32 fh_compose ( struct svc_fh ,
struct svc_export ,
struct dentry ,
struct svc_fh  
)

Definition at line 505 of file nfsfh.c.

void fh_put ( struct svc_fh )

Definition at line 625 of file nfsfh.c.

__be32 fh_update ( struct svc_fh )

Definition at line 589 of file nfsfh.c.

__be32 fh_verify ( struct svc_rqst rqstp,
struct svc_fh fhp,
umode_t  type,
int  access 
)

fh_verify - filehandle lookup and access checking : pointer to current rpc request : filehandle to be verified : expected type of object pointed to by filehandle : type of access needed to object

Look up a dentry from the on-the-wire filehandle, check the client's access to the export, and set the current task's credentials.

Regardless of success or failure of fh_verify(), fh_put() should be called on when the caller is finished with the filehandle.

fh_verify() may be called multiple times on a given filehandle, for example, when processing an NFSv4 compound. The first call will look up a dentry using the on-the-wire filehandle. Subsequent calls will skip the lookup and just perform the other checks and possibly change the current task's credentials.

specifies the type of object expected using one of the S_IF* constants defined in include/linux/stat.h. The caller may use zero to indicate that it doesn't care, or a negative integer to indicate that it expects something not of the given type.

is formed from the NFSD_MAY_* constants defined in include/linux/nfsd/nfsd.h.

Definition at line 296 of file nfsfh.c.

Definition at line 665 of file nfsfh.c.

char* SVCFH_fmt ( struct svc_fh fhp)

Definition at line 649 of file nfsfh.c.