diff options
Diffstat (limited to 'fs/xfs/xfs_acl.h')
-rw-r--r-- | fs/xfs/xfs_acl.h | 36 |
1 files changed, 0 insertions, 36 deletions
diff --git a/fs/xfs/xfs_acl.h b/fs/xfs/xfs_acl.h index 5dc163744511..3841b07f27bf 100644 --- a/fs/xfs/xfs_acl.h +++ b/fs/xfs/xfs_acl.h | |||
@@ -22,42 +22,6 @@ struct inode; | |||
22 | struct posix_acl; | 22 | struct posix_acl; |
23 | struct xfs_inode; | 23 | struct xfs_inode; |
24 | 24 | ||
25 | #define XFS_ACL_NOT_PRESENT (-1) | ||
26 | |||
27 | /* On-disk XFS access control list structure */ | ||
28 | struct xfs_acl_entry { | ||
29 | __be32 ae_tag; | ||
30 | __be32 ae_id; | ||
31 | __be16 ae_perm; | ||
32 | __be16 ae_pad; /* fill the implicit hole in the structure */ | ||
33 | }; | ||
34 | |||
35 | struct xfs_acl { | ||
36 | __be32 acl_cnt; | ||
37 | struct xfs_acl_entry acl_entry[0]; | ||
38 | }; | ||
39 | |||
40 | /* | ||
41 | * The number of ACL entries allowed is defined by the on-disk format. | ||
42 | * For v4 superblocks, that is limited to 25 entries. For v5 superblocks, it is | ||
43 | * limited only by the maximum size of the xattr that stores the information. | ||
44 | */ | ||
45 | #define XFS_ACL_MAX_ENTRIES(mp) \ | ||
46 | (xfs_sb_version_hascrc(&mp->m_sb) \ | ||
47 | ? (XATTR_SIZE_MAX - sizeof(struct xfs_acl)) / \ | ||
48 | sizeof(struct xfs_acl_entry) \ | ||
49 | : 25) | ||
50 | |||
51 | #define XFS_ACL_MAX_SIZE(mp) \ | ||
52 | (sizeof(struct xfs_acl) + \ | ||
53 | sizeof(struct xfs_acl_entry) * XFS_ACL_MAX_ENTRIES((mp))) | ||
54 | |||
55 | /* On-disk XFS extended attribute names */ | ||
56 | #define SGI_ACL_FILE (unsigned char *)"SGI_ACL_FILE" | ||
57 | #define SGI_ACL_DEFAULT (unsigned char *)"SGI_ACL_DEFAULT" | ||
58 | #define SGI_ACL_FILE_SIZE (sizeof(SGI_ACL_FILE)-1) | ||
59 | #define SGI_ACL_DEFAULT_SIZE (sizeof(SGI_ACL_DEFAULT)-1) | ||
60 | |||
61 | #ifdef CONFIG_XFS_POSIX_ACL | 25 | #ifdef CONFIG_XFS_POSIX_ACL |
62 | extern struct posix_acl *xfs_get_acl(struct inode *inode, int type); | 26 | extern struct posix_acl *xfs_get_acl(struct inode *inode, int type); |
63 | extern int xfs_set_acl(struct inode *inode, struct posix_acl *acl, int type); | 27 | extern int xfs_set_acl(struct inode *inode, struct posix_acl *acl, int type); |