xattr.h 909 B

12345678910111213141516171819202122232425262728293031
  1. /* SPDX-License-Identifier: GPL-2.0 */
  2. /*
  3. * Copyright (C) 2007 Red Hat. All rights reserved.
  4. */
  5. #ifndef BTRFS_XATTR_H
  6. #define BTRFS_XATTR_H
  7. #include <linux/types.h>
  8. struct dentry;
  9. struct inode;
  10. struct qstr;
  11. struct xattr_handler;
  12. struct btrfs_trans_handle;
  13. extern const struct xattr_handler * const btrfs_xattr_handlers[];
  14. int btrfs_getxattr(const struct inode *inode, const char *name,
  15. void *buffer, size_t size);
  16. int btrfs_setxattr(struct btrfs_trans_handle *trans, struct inode *inode,
  17. const char *name, const void *value, size_t size, int flags);
  18. int btrfs_setxattr_trans(struct inode *inode, const char *name,
  19. const void *value, size_t size, int flags);
  20. ssize_t btrfs_listxattr(struct dentry *dentry, char *buffer, size_t size);
  21. int btrfs_xattr_security_init(struct btrfs_trans_handle *trans,
  22. struct inode *inode, struct inode *dir,
  23. const struct qstr *qstr);
  24. #endif