xattr.h 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. /*
  2. * linux/fs/hfsplus/xattr.h
  3. *
  4. * Vyacheslav Dubeyko <slava@dubeyko.com>
  5. *
  6. * Logic of processing extended attributes
  7. */
  8. #ifndef _LINUX_HFSPLUS_XATTR_H
  9. #define _LINUX_HFSPLUS_XATTR_H
  10. #include <linux/xattr.h>
  11. extern const struct xattr_handler hfsplus_xattr_osx_handler;
  12. extern const struct xattr_handler hfsplus_xattr_user_handler;
  13. extern const struct xattr_handler hfsplus_xattr_trusted_handler;
  14. extern const struct xattr_handler hfsplus_xattr_acl_access_handler;
  15. extern const struct xattr_handler hfsplus_xattr_acl_default_handler;
  16. extern const struct xattr_handler hfsplus_xattr_security_handler;
  17. extern const struct xattr_handler *hfsplus_xattr_handlers[];
  18. int __hfsplus_setxattr(struct inode *inode, const char *name,
  19. const void *value, size_t size, int flags);
  20. static inline int hfsplus_setxattr(struct dentry *dentry, const char *name,
  21. const void *value, size_t size, int flags)
  22. {
  23. return __hfsplus_setxattr(dentry->d_inode, name, value, size, flags);
  24. }
  25. ssize_t __hfsplus_getxattr(struct inode *inode, const char *name,
  26. void *value, size_t size);
  27. static inline ssize_t hfsplus_getxattr(struct dentry *dentry,
  28. const char *name,
  29. void *value,
  30. size_t size)
  31. {
  32. return __hfsplus_getxattr(dentry->d_inode, name, value, size);
  33. }
  34. ssize_t hfsplus_listxattr(struct dentry *dentry, char *buffer, size_t size);
  35. int hfsplus_removexattr(struct dentry *dentry, const char *name);
  36. int hfsplus_init_security(struct inode *inode, struct inode *dir,
  37. const struct qstr *qstr);
  38. int hfsplus_init_inode_security(struct inode *inode, struct inode *dir,
  39. const struct qstr *qstr);
  40. #endif