Blame view
fs/xfs/xfs_acl.h
2.1 KB
1da177e4c Linux-2.6.12-rc2 |
1 |
/* |
7b7187698 [XFS] Update lice... |
2 3 |
* Copyright (c) 2001-2005 Silicon Graphics, Inc. * All Rights Reserved. |
1da177e4c Linux-2.6.12-rc2 |
4 |
* |
7b7187698 [XFS] Update lice... |
5 6 |
* This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License as |
1da177e4c Linux-2.6.12-rc2 |
7 8 |
* published by the Free Software Foundation. * |
7b7187698 [XFS] Update lice... |
9 10 11 12 |
* This program is distributed in the hope that it would be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. |
1da177e4c Linux-2.6.12-rc2 |
13 |
* |
7b7187698 [XFS] Update lice... |
14 15 16 |
* You should have received a copy of the GNU General Public License * along with this program; if not, write the Free Software Foundation, * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA |
1da177e4c Linux-2.6.12-rc2 |
17 18 19 |
*/ #ifndef __XFS_ACL_H__ #define __XFS_ACL_H__ |
ef14f0c15 xfs: use generic ... |
20 21 22 |
struct inode; struct posix_acl; struct xfs_inode; |
1da177e4c Linux-2.6.12-rc2 |
23 |
|
1aacc064e Revert "xfs: incr... |
24 |
#define XFS_ACL_MAX_ENTRIES 25 |
1da177e4c Linux-2.6.12-rc2 |
25 |
#define XFS_ACL_NOT_PRESENT (-1) |
ef14f0c15 xfs: use generic ... |
26 27 28 29 30 31 32 33 34 |
/* On-disk XFS access control list structure */ struct xfs_acl { __be32 acl_cnt; struct xfs_acl_entry { __be32 ae_tag; __be32 ae_id; __be16 ae_perm; } acl_entry[XFS_ACL_MAX_ENTRIES]; }; |
1da177e4c Linux-2.6.12-rc2 |
35 36 |
/* On-disk XFS extended attribute names */ |
a9273ca5c xfs: convert attr... |
37 38 |
#define SGI_ACL_FILE (unsigned char *)"SGI_ACL_FILE" #define SGI_ACL_DEFAULT (unsigned char *)"SGI_ACL_DEFAULT" |
1da177e4c Linux-2.6.12-rc2 |
39 40 |
#define SGI_ACL_FILE_SIZE (sizeof(SGI_ACL_FILE)-1) #define SGI_ACL_DEFAULT_SIZE (sizeof(SGI_ACL_DEFAULT)-1) |
1da177e4c Linux-2.6.12-rc2 |
41 |
#ifdef CONFIG_XFS_POSIX_ACL |
ef14f0c15 xfs: use generic ... |
42 43 44 |
extern struct posix_acl *xfs_get_acl(struct inode *inode, int type); extern int xfs_inherit_acl(struct inode *inode, struct posix_acl *default_acl); extern int xfs_acl_chmod(struct inode *inode); |
ef14f0c15 xfs: use generic ... |
45 46 |
extern int posix_acl_access_exists(struct inode *inode); extern int posix_acl_default_exists(struct inode *inode); |
1da177e4c Linux-2.6.12-rc2 |
47 |
|
46e58764f xfs: constify xat... |
48 49 |
extern const struct xattr_handler xfs_xattr_acl_access_handler; extern const struct xattr_handler xfs_xattr_acl_default_handler; |
1da177e4c Linux-2.6.12-rc2 |
50 |
#else |
a5a7bbcc0 xfs: Fix build br... |
51 52 53 54 |
static inline struct posix_acl *xfs_get_acl(struct inode *inode, int type) { return NULL; } |
ef14f0c15 xfs: use generic ... |
55 56 |
# define xfs_inherit_acl(inode, default_acl) 0 # define xfs_acl_chmod(inode) 0 |
ef14f0c15 xfs: use generic ... |
57 58 59 |
# define posix_acl_access_exists(inode) 0 # define posix_acl_default_exists(inode) 0 #endif /* CONFIG_XFS_POSIX_ACL */ |
1da177e4c Linux-2.6.12-rc2 |
60 |
#endif /* __XFS_ACL_H__ */ |