summaryrefslogtreecommitdiff
path: root/libbcachefs/subvolume_types.h
diff options
context:
space:
mode:
authorKent Overstreet <kent.overstreet@linux.dev>2023-03-31 15:52:24 -0400
committerKent Overstreet <kent.overstreet@linux.dev>2023-03-31 18:02:57 -0400
commit7f102ee83d83fd918783ca542fac1574f9b2c623 (patch)
treeda560f908d970d3dbad5749c1407ed30b6965c4c /libbcachefs/subvolume_types.h
parentd22c79d2fff10dd782caf5668fd019387914a5bb (diff)
Update bcachefs sources to 8fd009dd76 bcachefs: Rip out code for storing backpointers in alloc keysv0.28
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
Diffstat (limited to 'libbcachefs/subvolume_types.h')
-rw-r--r--libbcachefs/subvolume_types.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/libbcachefs/subvolume_types.h b/libbcachefs/subvolume_types.h
index f7562b5d..aa49c45a 100644
--- a/libbcachefs/subvolume_types.h
+++ b/libbcachefs/subvolume_types.h
@@ -6,4 +6,16 @@
typedef DARRAY(u32) snapshot_id_list;
+struct snapshot_t {
+ u32 parent;
+ u32 children[2];
+ u32 subvol; /* Nonzero only if a subvolume points to this node: */
+ u32 equiv;
+};
+
+typedef struct {
+ u32 subvol;
+ u64 inum;
+} subvol_inum;
+
#endif /* _BCACHEFS_SUBVOLUME_TYPES_H */