Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions
nfs4acl.c File Reference
#include <linux/slab.h>
#include <linux/nfs_fs.h>
#include <linux/export.h>
#include "acl.h"

Go to the source code of this file.

Data Structures

struct  ace_container
 
struct  posix_acl_summary
 
struct  posix_ace_state
 
struct  posix_user_ace_state
 
struct  posix_ace_state_array
 
struct  posix_acl_state
 

Macros

#define NFS4_READ_MODE   (NFS4_ACE_READ_DATA)
 
#define NFS4_WRITE_MODE   (NFS4_ACE_WRITE_DATA | NFS4_ACE_APPEND_DATA)
 
#define NFS4_EXECUTE_MODE   NFS4_ACE_EXECUTE
 
#define NFS4_ANYONE_MODE   (NFS4_ACE_READ_ATTRIBUTES | NFS4_ACE_READ_ACL | NFS4_ACE_SYNCHRONIZE)
 
#define NFS4_OWNER_MODE   (NFS4_ACE_WRITE_ATTRIBUTES | NFS4_ACE_WRITE_ACL)
 
#define NFS4_MASK_UNSUPP
 
#define NFS4_INHERITANCE_FLAGS
 
#define NFS4_SUPPORTED_FLAGS
 
#define MASK_EQUAL(mask1, mask2)   ( ((mask1) & NFS4_ACE_MASK_ALL) == ((mask2) & NFS4_ACE_MASK_ALL) )
 

Functions

struct nfs4_aclnfs4_acl_posix_to_nfsv4 (struct posix_acl *pacl, struct posix_acl *dpacl, unsigned int flags)
 
int nfs4_acl_nfsv4_to_posix (struct nfs4_acl *acl, struct posix_acl **pacl, struct posix_acl **dpacl, unsigned int flags)
 
 EXPORT_SYMBOL (nfs4_acl_posix_to_nfsv4)
 
 EXPORT_SYMBOL (nfs4_acl_nfsv4_to_posix)
 
struct nfs4_aclnfs4_acl_new (int n)
 
int nfs4_acl_get_whotype (char *p, u32 len)
 
int nfs4_acl_write_who (int who, char *p)
 
 EXPORT_SYMBOL (nfs4_acl_new)
 
 EXPORT_SYMBOL (nfs4_acl_get_whotype)
 
 EXPORT_SYMBOL (nfs4_acl_write_who)
 

Macro Definition Documentation

#define MASK_EQUAL (   mask1,
  mask2 
)    ( ((mask1) & NFS4_ACE_MASK_ALL) == ((mask2) & NFS4_ACE_MASK_ALL) )

Definition at line 62 of file nfs4acl.c.

Definition at line 47 of file nfs4acl.c.

#define NFS4_EXECUTE_MODE   NFS4_ACE_EXECUTE

Definition at line 46 of file nfs4acl.c.

#define NFS4_INHERITANCE_FLAGS
Value:

Definition at line 55 of file nfs4acl.c.

#define NFS4_MASK_UNSUPP
#define NFS4_OWNER_MODE   (NFS4_ACE_WRITE_ATTRIBUTES | NFS4_ACE_WRITE_ACL)

Definition at line 48 of file nfs4acl.c.

#define NFS4_READ_MODE   (NFS4_ACE_READ_DATA)

Definition at line 44 of file nfs4acl.c.

#define NFS4_SUPPORTED_FLAGS
#define NFS4_WRITE_MODE   (NFS4_ACE_WRITE_DATA | NFS4_ACE_APPEND_DATA)

Definition at line 45 of file nfs4acl.c.

Function Documentation

EXPORT_SYMBOL ( nfs4_acl_posix_to_nfsv4  )
EXPORT_SYMBOL ( nfs4_acl_nfsv4_to_posix  )
EXPORT_SYMBOL ( nfs4_acl_new  )
EXPORT_SYMBOL ( nfs4_acl_get_whotype  )
EXPORT_SYMBOL ( nfs4_acl_write_who  )
int nfs4_acl_get_whotype ( char p,
u32  len 
)

Definition at line 810 of file nfs4acl.c.

struct nfs4_acl* nfs4_acl_new ( int  n)
read

Definition at line 776 of file nfs4acl.c.

int nfs4_acl_nfsv4_to_posix ( struct nfs4_acl acl,
struct posix_acl **  pacl,
struct posix_acl **  dpacl,
unsigned int  flags 
)

Definition at line 693 of file nfs4acl.c.

struct nfs4_acl* nfs4_acl_posix_to_nfsv4 ( struct posix_acl pacl,
struct posix_acl dpacl,
unsigned int  flags 
)
read

Definition at line 134 of file nfs4acl.c.

int nfs4_acl_write_who ( int  who,
char p 
)

Definition at line 823 of file nfs4acl.c.

Variable Documentation

Definition at line 788 of file nfs4acl.c.

int stringlen

Definition at line 789 of file nfs4acl.c.

Definition at line 790 of file nfs4acl.c.