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

Go to the source code of this file.

Macros

#define NFS_ACL_MAX_ENTRIES   1024
 
#define NFSACL_MAXWORDS   (2*(2+3*NFS_ACL_MAX_ENTRIES))
 
#define NFSACL_MAXPAGES
 
#define NFS_ACL_MAX_ENTRIES_INLINE   (5)
 
#define NFS_ACL_INLINE_BUFSIZE   ((2*(2+3*NFS_ACL_MAX_ENTRIES_INLINE)) << 2)
 

Functions

int nfsacl_encode (struct xdr_buf *buf, unsigned int base, struct inode *inode, struct posix_acl *acl, int encode_entries, int typeflag)
 
int nfsacl_decode (struct xdr_buf *buf, unsigned int base, unsigned int *aclcnt, struct posix_acl **pacl)
 

Macro Definition Documentation

#define NFS_ACL_INLINE_BUFSIZE   ((2*(2+3*NFS_ACL_MAX_ENTRIES_INLINE)) << 2)

Definition at line 22 of file nfsacl.h.

#define NFS_ACL_MAX_ENTRIES   1024

Definition at line 15 of file nfsacl.h.

#define NFS_ACL_MAX_ENTRIES_INLINE   (5)

Definition at line 21 of file nfsacl.h.

#define NFSACL_MAXPAGES
Value:

Definition at line 18 of file nfsacl.h.

#define NFSACL_MAXWORDS   (2*(2+3*NFS_ACL_MAX_ENTRIES))

Definition at line 17 of file nfsacl.h.

Function Documentation

int nfsacl_decode ( struct xdr_buf *  buf,
unsigned int  base,
unsigned int aclcnt,
struct posix_acl **  pacl 
)

nfsacl_decode - Decode an NFSv3 ACL

: xdr_buf containing XDR'd ACL data to decode : byte offset in xdr_buf where XDR'd ACL begins : count of ACEs in decoded posix_acl : buffer in which to place decoded posix_acl

Returns the length of the decoded ACL in bytes, or a negative errno value.

Definition at line 255 of file nfsacl.c.

int nfsacl_encode ( struct xdr_buf *  buf,
unsigned int  base,
struct inode inode,
struct posix_acl acl,
int  encode_entries,
int  typeflag 
)

nfsacl_encode - Encode an NFSv3 ACL

: destination xdr_buf to contain XDR encoded ACL : byte offset in xdr_buf where XDR'd ACL begins : inode of file whose ACL this is : posix_acl to encode : whether to encode ACEs as well : ACL type: NFS_ACL_DEFAULT or zero

Returns size of encoded ACL in bytes or a negative errno value.

Definition at line 92 of file nfsacl.c.