Commit 1c59b483 authored by Kent Overstreet's avatar Kent Overstreet
Browse files

bcachefs: BTREE_ID_snapshot_tree



This adds a new btree which gets us a persistent per-snapshot-tree
identifier.

 - BTREE_ID_snapshot_trees
 - KEY_TYPE_snapshot_tree
 - bch_snapshot now has a field that points to a snapshot_tree

This is going to be used to designate one snapshot ID/subvolume out of a
given tree of snapshots as the "main" subvolume, so that we can do quota
accounting in that subvolume and not the rest.

Signed-off-by: default avatarKent Overstreet <kent.overstreet@linux.dev>
parent 51e84d3b
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment