]> git.sesse.net Git - bcachefs-tools-debian/blob - libbcachefs/fs-common.h
Add upstream files
[bcachefs-tools-debian] / libbcachefs / fs-common.h
1 /* SPDX-License-Identifier: GPL-2.0 */
2 #ifndef _BCACHEFS_FS_COMMON_H
3 #define _BCACHEFS_FS_COMMON_H
4
5 struct posix_acl;
6
7 int bch2_create_trans(struct btree_trans *, u64,
8                       struct bch_inode_unpacked *,
9                       struct bch_inode_unpacked *,
10                       const struct qstr *,
11                       uid_t, gid_t, umode_t, dev_t,
12                       struct posix_acl *,
13                       struct posix_acl *);
14
15 int bch2_link_trans(struct btree_trans *, u64,
16                     u64, struct bch_inode_unpacked *,
17                     struct bch_inode_unpacked *,
18                     const struct qstr *);
19
20 int bch2_unlink_trans(struct btree_trans *,
21                       u64, struct bch_inode_unpacked *,
22                       struct bch_inode_unpacked *,
23                       const struct qstr *);
24
25 int bch2_rename_trans(struct btree_trans *,
26                       u64, struct bch_inode_unpacked *,
27                       u64, struct bch_inode_unpacked *,
28                       struct bch_inode_unpacked *,
29                       struct bch_inode_unpacked *,
30                       const struct qstr *,
31                       const struct qstr *,
32                       enum bch_rename_mode);
33
34 bool bch2_reinherit_attrs(struct bch_inode_unpacked *,
35                           struct bch_inode_unpacked *);
36
37 #endif /* _BCACHEFS_FS_COMMON_H */