Blame view
include/linux/nfsacl.h
1.11 KB
a257cdd0e [PATCH] NFSD: Add... |
1 2 3 4 5 6 7 |
/* * File: linux/nfsacl.h * * (C) 2003 Andreas Gruenbacher <agruen@suse.de> */ #ifndef __LINUX_NFSACL_H #define __LINUX_NFSACL_H |
a257cdd0e [PATCH] NFSD: Add... |
8 9 |
#include <linux/posix_acl.h> |
d70315822 nfsd: Fix indepen... |
10 |
#include <linux/sunrpc/xdr.h> |
607ca46e9 UAPI: (Scripted) ... |
11 |
#include <uapi/linux/nfsacl.h> |
a257cdd0e [PATCH] NFSD: Add... |
12 13 14 15 16 17 18 |
/* Maximum number of ACL entries over NFS */ #define NFS_ACL_MAX_ENTRIES 1024 #define NFSACL_MAXWORDS (2*(2+3*NFS_ACL_MAX_ENTRIES)) #define NFSACL_MAXPAGES ((2*(8+12*NFS_ACL_MAX_ENTRIES) + PAGE_SIZE-1) \ >> PAGE_SHIFT) |
ae46141ff NFSv3: Fix posix ... |
19 20 |
#define NFS_ACL_MAX_ENTRIES_INLINE (5) #define NFS_ACL_INLINE_BUFSIZE ((2*(2+3*NFS_ACL_MAX_ENTRIES_INLINE)) << 2) |
a257cdd0e [PATCH] NFSD: Add... |
21 22 23 24 25 26 27 28 29 |
static inline unsigned int nfsacl_size(struct posix_acl *acl_access, struct posix_acl *acl_default) { unsigned int w = 16; w += max(acl_access ? (int)acl_access->a_count : 3, 4) * 12; if (acl_default) w += max((int)acl_default->a_count, 4) * 12; return w; } |
731f3f482 NFS: nfsacl_{enco... |
30 |
extern int |
a257cdd0e [PATCH] NFSD: Add... |
31 32 |
nfsacl_encode(struct xdr_buf *buf, unsigned int base, struct inode *inode, struct posix_acl *acl, int encode_entries, int typeflag); |
731f3f482 NFS: nfsacl_{enco... |
33 |
extern int |
a257cdd0e [PATCH] NFSD: Add... |
34 35 |
nfsacl_decode(struct xdr_buf *buf, unsigned int base, unsigned int *aclcnt, struct posix_acl **pacl); |
a257cdd0e [PATCH] NFSD: Add... |
36 |
#endif /* __LINUX_NFSACL_H */ |