Back to home page

OSCL-LXR

 
 

    


0001 /* SPDX-License-Identifier: GPL-2.0 */
0002 /*
0003  * Copyright (C) 2014 Filipe David Borba Manana <fdmanana@gmail.com>
0004  */
0005 
0006 #ifndef BTRFS_PROPS_H
0007 #define BTRFS_PROPS_H
0008 
0009 #include "ctree.h"
0010 
0011 void __init btrfs_props_init(void);
0012 
0013 int btrfs_set_prop(struct btrfs_trans_handle *trans, struct inode *inode,
0014            const char *name, const char *value, size_t value_len,
0015            int flags);
0016 int btrfs_validate_prop(const struct btrfs_inode *inode, const char *name,
0017             const char *value, size_t value_len);
0018 bool btrfs_ignore_prop(const struct btrfs_inode *inode, const char *name);
0019 
0020 int btrfs_load_inode_props(struct inode *inode, struct btrfs_path *path);
0021 
0022 int btrfs_inode_inherit_props(struct btrfs_trans_handle *trans,
0023                   struct inode *inode,
0024                   struct inode *dir);
0025 
0026 #endif