Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions
nfs4idmap.c File Reference
#include <linux/module.h>
#include <linux/seq_file.h>
#include <linux/sched.h>
#include <linux/slab.h>
#include <linux/sunrpc/svc_xprt.h>
#include <net/net_namespace.h>
#include "idmap.h"
#include "nfsd.h"
#include "netns.h"

Go to the source code of this file.

Data Structures

struct  ent
 

Macros

#define IDMAP_TYPE_USER   0
 
#define IDMAP_TYPE_GROUP   1
 
#define ENT_HASHBITS   8
 
#define ENT_HASHMAX   (1 << ENT_HASHBITS)
 

Functions

 module_param (nfs4_disable_idmapping, bool, 0644)
 
 MODULE_PARM_DESC (nfs4_disable_idmapping,"Turn off server's NFSv4 idmapping when using 'sec=sys'")
 
int nfsd_idmap_init (struct net *net)
 
void nfsd_idmap_shutdown (struct net *net)
 
__be32 nfsd_map_name_to_uid (struct svc_rqst *rqstp, const char *name, size_t namelen, __u32 *id)
 
__be32 nfsd_map_name_to_gid (struct svc_rqst *rqstp, const char *name, size_t namelen, __u32 *id)
 
int nfsd_map_uid_to_name (struct svc_rqst *rqstp, __u32 id, char *name)
 
int nfsd_map_gid_to_name (struct svc_rqst *rqstp, __u32 id, char *name)
 

Macro Definition Documentation

#define ENT_HASHBITS   8

Definition at line 75 of file nfs4idmap.c.

#define ENT_HASHMAX   (1 << ENT_HASHBITS)

Definition at line 76 of file nfs4idmap.c.

#define IDMAP_TYPE_GROUP   1

Definition at line 63 of file nfs4idmap.c.

#define IDMAP_TYPE_USER   0

Definition at line 62 of file nfs4idmap.c.

Function Documentation

module_param ( nfs4_disable_idmapping  ,
bool  ,
0644   
)
MODULE_PARM_DESC ( nfs4_disable_idmapping  )
int nfsd_idmap_init ( struct net net)

Definition at line 468 of file nfs4idmap.c.

void nfsd_idmap_shutdown ( struct net net)

Definition at line 499 of file nfs4idmap.c.

int nfsd_map_gid_to_name ( struct svc_rqst rqstp,
__u32  id,
char name 
)

Definition at line 647 of file nfs4idmap.c.

__be32 nfsd_map_name_to_gid ( struct svc_rqst rqstp,
const char name,
size_t  namelen,
__u32 id 
)

Definition at line 634 of file nfs4idmap.c.

__be32 nfsd_map_name_to_uid ( struct svc_rqst rqstp,
const char name,
size_t  namelen,
__u32 id 
)

Definition at line 627 of file nfs4idmap.c.

int nfsd_map_uid_to_name ( struct svc_rqst rqstp,
__u32  id,
char name 
)

Definition at line 641 of file nfs4idmap.c.