Vyacheslav Dubeyko | 2c92057 | 2013-09-11 14:24:28 -0700 | [diff] [blame] | 1 | /* |
| 2 | * linux/fs/hfsplus/acl.h |
| 3 | * |
| 4 | * Vyacheslav Dubeyko <slava@dubeyko.com> |
| 5 | * |
| 6 | * Handler for Posix Access Control Lists (ACLs) support. |
| 7 | */ |
| 8 | |
| 9 | #include <linux/posix_acl_xattr.h> |
| 10 | |
| 11 | #ifdef CONFIG_HFSPLUS_FS_POSIX_ACL |
| 12 | |
| 13 | /* posix_acl.c */ |
| 14 | struct posix_acl *hfsplus_get_posix_acl(struct inode *inode, int type); |
| 15 | extern int hfsplus_posix_acl_chmod(struct inode *); |
| 16 | extern int hfsplus_init_posix_acl(struct inode *, struct inode *); |
| 17 | |
| 18 | #else /* CONFIG_HFSPLUS_FS_POSIX_ACL */ |
| 19 | #define hfsplus_get_posix_acl NULL |
| 20 | |
| 21 | static inline int hfsplus_posix_acl_chmod(struct inode *inode) |
| 22 | { |
| 23 | return 0; |
| 24 | } |
| 25 | |
| 26 | static inline int hfsplus_init_posix_acl(struct inode *inode, struct inode *dir) |
| 27 | { |
| 28 | return 0; |
| 29 | } |
| 30 | #endif /* CONFIG_HFSPLUS_FS_POSIX_ACL */ |