acl.h 716 B

123456789101112131415161718192021222324252627282930
  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. extern int hfsplus_posix_acl_chmod(struct inode *);
  13. extern int hfsplus_init_posix_acl(struct inode *, struct inode *);
  14. #else /* CONFIG_HFSPLUS_FS_POSIX_ACL */
  15. #define hfsplus_get_posix_acl NULL
  16. static inline int hfsplus_posix_acl_chmod(struct inode *inode)
  17. {
  18. return 0;
  19. }
  20. static inline int hfsplus_init_posix_acl(struct inode *inode, struct inode *dir)
  21. {
  22. return 0;
  23. }
  24. #endif /* CONFIG_HFSPLUS_FS_POSIX_ACL */