xattr.h 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. /* SPDX-License-Identifier: GPL-2.0 */
  2. /*
  3. * linux/fs/hfsplus/xattr.h
  4. *
  5. * Vyacheslav Dubeyko <slava@dubeyko.com>
  6. *
  7. * Logic of processing extended attributes
  8. */
  9. #ifndef _LINUX_HFSPLUS_XATTR_H
  10. #define _LINUX_HFSPLUS_XATTR_H
  11. #include <linux/xattr.h>
  12. extern const struct xattr_handler hfsplus_xattr_osx_handler;
  13. extern const struct xattr_handler hfsplus_xattr_user_handler;
  14. extern const struct xattr_handler hfsplus_xattr_trusted_handler;
  15. extern const struct xattr_handler hfsplus_xattr_security_handler;
  16. extern const struct xattr_handler *hfsplus_xattr_handlers[];
  17. int __hfsplus_setxattr(struct inode *inode, const char *name,
  18. const void *value, size_t size, int flags);
  19. int hfsplus_setxattr(struct inode *inode, const char *name,
  20. const void *value, size_t size, int flags,
  21. const char *prefix, size_t prefixlen);
  22. ssize_t __hfsplus_getxattr(struct inode *inode, const char *name,
  23. void *value, size_t size);
  24. ssize_t hfsplus_getxattr(struct inode *inode, const char *name,
  25. void *value, size_t size,
  26. const char *prefix, size_t prefixlen);
  27. ssize_t hfsplus_listxattr(struct dentry *dentry, char *buffer, size_t size);
  28. int hfsplus_init_security(struct inode *inode, struct inode *dir,
  29. const struct qstr *qstr);
  30. #endif