Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Functions
nfsacl.c File Reference
#include <linux/module.h>
#include <linux/fs.h>
#include <linux/gfp.h>
#include <linux/sunrpc/xdr.h>
#include <linux/nfsacl.h>
#include <linux/nfs3.h>
#include <linux/sort.h>

Go to the source code of this file.

Data Structures

struct  nfsacl_encode_desc
 
struct  nfsacl_simple_acl
 
struct  nfsacl_decode_desc
 

Functions

 MODULE_LICENSE ("GPL")
 
 EXPORT_SYMBOL_GPL (nfsacl_encode)
 
 EXPORT_SYMBOL_GPL (nfsacl_decode)
 
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)
 

Function Documentation

EXPORT_SYMBOL_GPL ( nfsacl_encode  )
EXPORT_SYMBOL_GPL ( nfsacl_decode  )
MODULE_LICENSE ( "GPL"  )
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.