diff options
author | Kent Overstreet <kent.overstreet@linux.dev> | 2023-08-16 16:54:33 -0400 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@linux.dev> | 2023-08-16 16:54:33 -0400 |
commit | 28677d8dc4904105cbdbe297ed3fe3027ebd6856 (patch) | |
tree | b4954994a3fde1cbdfa8ac724d27971b0544a6b5 /fs/bcachefs/bcachefs_format.h | |
parent | c2ae89abc64ee0cb22e146f92ddc921013cfe5a8 (diff) |
bcachefs: Split out snapshot.c
subvolume.c has gotten a bit large, this splits out a separate file just
for managing snapshot trees - BTREE_ID_snapshots.
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
Diffstat (limited to 'fs/bcachefs/bcachefs_format.h')
-rw-r--r-- | fs/bcachefs/bcachefs_format.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/fs/bcachefs/bcachefs_format.h b/fs/bcachefs/bcachefs_format.h index 23bae622309c..20e96daf9ca1 100644 --- a/fs/bcachefs/bcachefs_format.h +++ b/fs/bcachefs/bcachefs_format.h @@ -1124,6 +1124,11 @@ struct bch_subvolume { __le32 flags; __le32 snapshot; __le64 inode; + /* + * Snapshot subvolumes form a tree, separate from the snapshot nodes + * tree - if this subvolume is a snapshot, this is the ID of the + * subvolume it was created from: + */ __le32 parent; __le32 pad; bch_le128 otime; |