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

Go to the source code of this file.

Functions

int nfs_idmap_new (struct nfs_client *)
 
void nfs_idmap_delete (struct nfs_client *)
 
void nfs_fattr_init_names (struct nfs_fattr *fattr, struct nfs4_string *owner_name, struct nfs4_string *group_name)
 
void nfs_fattr_free_names (struct nfs_fattr *)
 
void nfs_fattr_map_and_free_names (struct nfs_server *, struct nfs_fattr *)
 
int nfs_map_name_to_uid (const struct nfs_server *, const char *, size_t, __u32 *)
 
int nfs_map_group_to_gid (const struct nfs_server *, const char *, size_t, __u32 *)
 
int nfs_map_uid_to_name (const struct nfs_server *, __u32, char *, size_t)
 
int nfs_map_gid_to_group (const struct nfs_server *, __u32, char *, size_t)
 

Variables

unsigned int nfs_idmap_cache_timeout
 

Function Documentation

void nfs_fattr_free_names ( struct nfs_fattr fattr)

nfs_fattr_free_names - free up the NFSv4 owner and group strings : a fully initialised nfs_fattr structure

Definition at line 129 of file idmap.c.

void nfs_fattr_init_names ( struct nfs_fattr fattr,
struct nfs4_string owner_name,
struct nfs4_string group_name 
)

nfs_fattr_init_names - initialise the nfs_fattr owner_name/group_name fields : fully initialised struct nfs_fattr : owner name string cache : group name string cache

Definition at line 77 of file idmap.c.

void nfs_fattr_map_and_free_names ( struct nfs_server server,
struct nfs_fattr fattr 
)

nfs_fattr_map_and_free_names - map owner/group strings into uid/gid and free : pointer to the filesystem nfs_server structure : a fully initialised nfs_fattr structure

This helper maps the cached NFSv4 owner/group strings in fattr into their numeric uid/gid equivalents, and then frees the cached strings.

Definition at line 145 of file idmap.c.

void nfs_idmap_delete ( struct nfs_client )

Definition at line 492 of file idmap.c.

int nfs_idmap_new ( struct nfs_client )

Definition at line 462 of file idmap.c.

int nfs_map_gid_to_group ( const struct nfs_server ,
__u32  ,
char ,
size_t   
)

Definition at line 872 of file idmap.c.

int nfs_map_group_to_gid ( const struct nfs_server ,
const char ,
size_t  ,
__u32  
)

Definition at line 852 of file idmap.c.

int nfs_map_name_to_uid ( const struct nfs_server ,
const char ,
size_t  ,
__u32  
)

Definition at line 843 of file idmap.c.

int nfs_map_uid_to_name ( const struct nfs_server ,
__u32  ,
char ,
size_t   
)

Definition at line 861 of file idmap.c.

Variable Documentation

unsigned int nfs_idmap_cache_timeout