props.h 696 B

123456789101112131415161718192021222324252627282930
  1. /* SPDX-License-Identifier: GPL-2.0 */
  2. /*
  3. * Copyright (C) 2014 Filipe David Borba Manana <fdmanana@gmail.com>
  4. */
  5. #ifndef BTRFS_PROPS_H
  6. #define BTRFS_PROPS_H
  7. #include "ctree.h"
  8. void __init btrfs_props_init(void);
  9. int btrfs_set_prop(struct inode *inode,
  10. const char *name,
  11. const char *value,
  12. size_t value_len,
  13. int flags);
  14. int btrfs_load_inode_props(struct inode *inode, struct btrfs_path *path);
  15. int btrfs_inode_inherit_props(struct btrfs_trans_handle *trans,
  16. struct inode *inode,
  17. struct inode *dir);
  18. int btrfs_subvol_inherit_props(struct btrfs_trans_handle *trans,
  19. struct btrfs_root *root,
  20. struct btrfs_root *parent_root);
  21. #endif