xattr.h 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. /*
  2. * Copyright (C) 2007 Red Hat. All rights reserved.
  3. *
  4. * This program is free software; you can redistribute it and/or
  5. * modify it under the terms of the GNU General Public
  6. * License v2 as published by the Free Software Foundation.
  7. *
  8. * This program is distributed in the hope that it will be useful,
  9. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  10. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  11. * General Public License for more details.
  12. *
  13. * You should have received a copy of the GNU General Public
  14. * License along with this program; if not, write to the
  15. * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
  16. * Boston, MA 021110-1307, USA.
  17. */
  18. #ifndef __XATTR__
  19. #define __XATTR__
  20. #include <linux/xattr.h>
  21. extern const struct xattr_handler btrfs_xattr_acl_access_handler;
  22. extern const struct xattr_handler btrfs_xattr_acl_default_handler;
  23. extern const struct xattr_handler *btrfs_xattr_handlers[];
  24. extern ssize_t __btrfs_getxattr(struct inode *inode, const char *name,
  25. void *buffer, size_t size);
  26. extern int __btrfs_setxattr(struct btrfs_trans_handle *trans,
  27. struct inode *inode, const char *name,
  28. const void *value, size_t size, int flags);
  29. extern ssize_t btrfs_getxattr(struct dentry *dentry, const char *name,
  30. void *buffer, size_t size);
  31. extern int btrfs_setxattr(struct dentry *dentry, const char *name,
  32. const void *value, size_t size, int flags);
  33. extern int btrfs_removexattr(struct dentry *dentry, const char *name);
  34. extern int btrfs_xattr_security_init(struct btrfs_trans_handle *trans,
  35. struct inode *inode, struct inode *dir,
  36. const struct qstr *qstr);
  37. #endif /* __XATTR__ */