xattr.h 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  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_security_handler;
  15. extern const struct xattr_handler *hfsplus_xattr_handlers[];
  16. int __hfsplus_setxattr(struct inode *inode, const char *name,
  17. const void *value, size_t size, int flags);
  18. static inline int hfsplus_setxattr(struct dentry *dentry, const char *name,
  19. const void *value, size_t size, int flags)
  20. {
  21. return __hfsplus_setxattr(dentry->d_inode, name, value, size, flags);
  22. }
  23. ssize_t __hfsplus_getxattr(struct inode *inode, const char *name,
  24. void *value, size_t size);
  25. static inline ssize_t hfsplus_getxattr(struct dentry *dentry,
  26. const char *name,
  27. void *value,
  28. size_t size)
  29. {
  30. return __hfsplus_getxattr(dentry->d_inode, name, value, size);
  31. }
  32. ssize_t hfsplus_listxattr(struct dentry *dentry, char *buffer, size_t size);
  33. int hfsplus_init_security(struct inode *inode, struct inode *dir,
  34. const struct qstr *qstr);
  35. int hfsplus_init_inode_security(struct inode *inode, struct inode *dir,
  36. const struct qstr *qstr);
  37. #endif