acl.h 703 B

123456789101112131415161718192021222324252627
  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. #include <linux/posix_acl_xattr.h>
  9. #ifdef CONFIG_HFSPLUS_FS_POSIX_ACL
  10. /* posix_acl.c */
  11. struct posix_acl *hfsplus_get_posix_acl(struct inode *inode, int type);
  12. int hfsplus_set_posix_acl(struct inode *inode, struct posix_acl *acl,
  13. int type);
  14. extern int hfsplus_init_posix_acl(struct inode *, struct inode *);
  15. #else /* CONFIG_HFSPLUS_FS_POSIX_ACL */
  16. #define hfsplus_get_posix_acl NULL
  17. #define hfsplus_set_posix_acl NULL
  18. static inline int hfsplus_init_posix_acl(struct inode *inode, struct inode *dir)
  19. {
  20. return 0;
  21. }
  22. #endif /* CONFIG_HFSPLUS_FS_POSIX_ACL */