xattr.h 894 B

12345678910111213141516171819202122232425
  1. /* SPDX-License-Identifier: LGPL-2.1 */
  2. /*
  3. * Copyright IBM Corporation, 2010
  4. * Author Aneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com>
  5. */
  6. #ifndef FS_9P_XATTR_H
  7. #define FS_9P_XATTR_H
  8. #include <linux/xattr.h>
  9. #include <net/9p/9p.h>
  10. #include <net/9p/client.h>
  11. extern const struct xattr_handler * const v9fs_xattr_handlers[];
  12. ssize_t v9fs_fid_xattr_get(struct p9_fid *fid, const char *name,
  13. void *buffer, size_t buffer_size);
  14. ssize_t v9fs_xattr_get(struct dentry *dentry, const char *name,
  15. void *buffer, size_t buffer_size);
  16. int v9fs_fid_xattr_set(struct p9_fid *fid, const char *name,
  17. const void *value, size_t value_len, int flags);
  18. int v9fs_xattr_set(struct dentry *dentry, const char *name,
  19. const void *value, size_t value_len, int flags);
  20. ssize_t v9fs_listxattr(struct dentry *dentry, char *buffer,
  21. size_t buffer_size);
  22. #endif /* FS_9P_XATTR_H */