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); |
Christoph Hellwig | b0a7ab5 | 2013-12-20 05:16:46 -0800 | [diff] [blame] | 15 | int hfsplus_set_posix_acl(struct inode *inode, struct posix_acl *acl, |
| 16 | int type); |
Vyacheslav Dubeyko | 2c92057 | 2013-09-11 14:24:28 -0700 | [diff] [blame] | 17 | extern int hfsplus_init_posix_acl(struct inode *, struct inode *); |
| 18 | |
| 19 | #else /* CONFIG_HFSPLUS_FS_POSIX_ACL */ |
| 20 | #define hfsplus_get_posix_acl NULL |
Christoph Hellwig | b0a7ab5 | 2013-12-20 05:16:46 -0800 | [diff] [blame] | 21 | #define hfsplus_set_posix_acl NULL |
Vyacheslav Dubeyko | 2c92057 | 2013-09-11 14:24:28 -0700 | [diff] [blame] | 22 | |
| 23 | static inline int hfsplus_init_posix_acl(struct inode *inode, struct inode *dir) |
| 24 | { |
| 25 | return 0; |
| 26 | } |
| 27 | #endif /* CONFIG_HFSPLUS_FS_POSIX_ACL */ |