xattr.h 804 B

1234567891011121314151617181920212223242526
  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/xattr.h>
  8. extern const struct xattr_handler *btrfs_xattr_handlers[];
  9. int btrfs_getxattr(struct inode *inode, const char *name,
  10. void *buffer, size_t size);
  11. int btrfs_setxattr(struct btrfs_trans_handle *trans, struct inode *inode,
  12. const char *name, const void *value, size_t size, int flags);
  13. int btrfs_setxattr_trans(struct inode *inode, const char *name,
  14. const void *value, size_t size, int flags);
  15. ssize_t btrfs_listxattr(struct dentry *dentry, char *buffer, size_t size);
  16. int btrfs_xattr_security_init(struct btrfs_trans_handle *trans,
  17. struct inode *inode, struct inode *dir,
  18. const struct qstr *qstr);
  19. #endif