xattr.h 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  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. int hfsplus_setxattr(struct inode *inode, const char *name,
  19. const void *value, size_t size, int flags,
  20. const char *prefix, size_t prefixlen);
  21. ssize_t __hfsplus_getxattr(struct inode *inode, const char *name,
  22. void *value, size_t size);
  23. ssize_t hfsplus_getxattr(struct inode *inode, const char *name,
  24. void *value, size_t size,
  25. const char *prefix, size_t prefixlen);
  26. ssize_t hfsplus_listxattr(struct dentry *dentry, char *buffer, size_t size);
  27. int hfsplus_init_security(struct inode *inode, struct inode *dir,
  28. const struct qstr *qstr);
  29. int hfsplus_init_inode_security(struct inode *inode, struct inode *dir,
  30. const struct qstr *qstr);
  31. #endif