]> git.sesse.net Git - bcachefs-tools-debian/blobdiff - libbcachefs/fs-common.h
Update bcachefs sources to 717b356d1d bcachefs: Convert journal validation to bkey_in...
[bcachefs-tools-debian] / libbcachefs / fs-common.h
index 2273b7961c9be6ab2d8960fda7f86068d4e44cad..dde2378595143fb6d7bbfda126b26bdaef17317c 100644 (file)
@@ -4,27 +4,33 @@
 
 struct posix_acl;
 
-int bch2_create_trans(struct btree_trans *, u64,
+#define BCH_CREATE_TMPFILE             (1U << 0)
+#define BCH_CREATE_SUBVOL              (1U << 1)
+#define BCH_CREATE_SNAPSHOT            (1U << 2)
+#define BCH_CREATE_SNAPSHOT_RO         (1U << 3)
+
+int bch2_create_trans(struct btree_trans *, subvol_inum,
                      struct bch_inode_unpacked *,
                      struct bch_inode_unpacked *,
                      const struct qstr *,
                      uid_t, gid_t, umode_t, dev_t,
                      struct posix_acl *,
-                     struct posix_acl *);
+                     struct posix_acl *,
+                     subvol_inum, unsigned);
 
-int bch2_link_trans(struct btree_trans *, u64,
-                   u64, struct bch_inode_unpacked *,
-                   struct bch_inode_unpacked *,
+int bch2_link_trans(struct btree_trans *,
+                   subvol_inum, struct bch_inode_unpacked *,
+                   subvol_inum, struct bch_inode_unpacked *,
                    const struct qstr *);
 
-int bch2_unlink_trans(struct btree_trans *,
-                     u64, struct bch_inode_unpacked *,
+int bch2_unlink_trans(struct btree_trans *, subvol_inum,
+                     struct bch_inode_unpacked *,
                      struct bch_inode_unpacked *,
-                     const struct qstr *);
+                     const struct qstr *, bool);
 
 int bch2_rename_trans(struct btree_trans *,
-                     u64, struct bch_inode_unpacked *,
-                     u64, struct bch_inode_unpacked *,
+                     subvol_inum, struct bch_inode_unpacked *,
+                     subvol_inum, struct bch_inode_unpacked *,
                      struct bch_inode_unpacked *,
                      struct bch_inode_unpacked *,
                      const struct qstr *,