Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Typedefs | Functions | Variables
export.c File Reference
#include <linux/slab.h>
#include <linux/namei.h>
#include <linux/module.h>
#include <linux/exportfs.h>
#include <linux/sunrpc/svc_xprt.h>
#include <net/ipv6.h>
#include "nfsd.h"
#include "nfsfh.h"
#include "netns.h"

Go to the source code of this file.

Data Structures

struct  flags
 

Macros

#define NFSDDBG_FACILITY   NFSDDBG_EXPORT
 
#define EXPKEY_HASHBITS   8
 
#define EXPKEY_HASHMAX   (1 << EXPKEY_HASHBITS)
 
#define EXPKEY_HASHMASK   (EXPKEY_HASHMAX -1)
 
#define EXPORT_HASHBITS   8
 
#define EXPORT_HASHMAX   (1<< EXPORT_HASHBITS)
 

Typedefs

typedef struct auth_domain svc_client
 
typedef struct svc_export svc_export
 

Functions

int exp_rootfh (struct net *net, svc_client *clp, char *name, struct knfsd_fh *f, int maxsize)
 
__be32 check_nfsd_access (struct svc_export *exp, struct svc_rqst *rqstp)
 
struct svc_exportrqst_exp_get_by_name (struct svc_rqst *rqstp, struct path *path)
 
struct svc_exportrqst_exp_find (struct svc_rqst *rqstp, int fsid_type, u32 *fsidv)
 
struct svc_exportrqst_exp_parent (struct svc_rqst *rqstp, struct path *path)
 
struct svc_exportrqst_find_fsidzero_export (struct svc_rqst *rqstp)
 
__be32 exp_pseudoroot (struct svc_rqst *rqstp, struct svc_fh *fhp)
 
int nfsd_export_init (struct net *net)
 
void nfsd_export_flush (struct net *net)
 
void nfsd_export_shutdown (struct net *net)
 

Variables

struct seq_operations nfs_exports_op
 

Macro Definition Documentation

#define EXPKEY_HASHBITS   8

Definition at line 40 of file export.c.

#define EXPKEY_HASHMASK   (EXPKEY_HASHMAX -1)

Definition at line 42 of file export.c.

#define EXPKEY_HASHMAX   (1 << EXPKEY_HASHBITS)

Definition at line 41 of file export.c.

#define EXPORT_HASHBITS   8

Definition at line 298 of file export.c.

#define EXPORT_HASHMAX   (1<< EXPORT_HASHBITS)

Definition at line 299 of file export.c.

#define NFSDDBG_FACILITY   NFSDDBG_EXPORT

Definition at line 26 of file export.c.

Typedef Documentation

typedef struct auth_domain svc_client

Definition at line 28 of file export.c.

Definition at line 29 of file export.c.

Function Documentation

__be32 check_nfsd_access ( struct svc_export exp,
struct svc_rqst rqstp 
)

Definition at line 897 of file export.c.

__be32 exp_pseudoroot ( struct svc_rqst rqstp,
struct svc_fh fhp 
)

Definition at line 1024 of file export.c.

int exp_rootfh ( struct net net,
svc_client clp,
char name,
struct knfsd_fh f,
int  maxsize 
)

Definition at line 835 of file export.c.

void nfsd_export_flush ( struct net net)

Definition at line 1275 of file export.c.

int nfsd_export_init ( struct net net)

Definition at line 1238 of file export.c.

void nfsd_export_shutdown ( struct net net)

Definition at line 1287 of file export.c.

struct svc_export* rqst_exp_find ( struct svc_rqst rqstp,
int  fsid_type,
u32 fsidv 
)
read

Definition at line 960 of file export.c.

struct svc_export* rqst_exp_get_by_name ( struct svc_rqst rqstp,
struct path path 
)
read

Definition at line 929 of file export.c.

struct svc_export* rqst_exp_parent ( struct svc_rqst rqstp,
struct path path 
)
read

Definition at line 993 of file export.c.

struct svc_export* rqst_find_fsidzero_export ( struct svc_rqst rqstp)
read

Definition at line 1009 of file export.c.

Variable Documentation

struct seq_operations nfs_exports_op
Initial value:
= {
.start = e_start,
.next = e_next,
.stop = e_stop,
.show = e_show,
}

Definition at line 1227 of file export.c.