diff options
| author | Kent Overstreet <kent.overstreet@linux.dev> | 2023-03-29 11:18:52 -0400 |
|---|---|---|
| committer | Kent Overstreet <kent.overstreet@linux.dev> | 2023-10-22 17:10:01 -0400 |
| commit | 1c59b483a3d249e08f0dcff43d9b78851d216fc1 (patch) | |
| tree | 4424cbe0276ababf64cd21535e705e124d51bd66 /fs/bcachefs/errcode.h | |
| parent | 51e84d3bbff55f5ac79fef0d1bbf515d6d397289 (diff) | |
| download | lwn-1c59b483a3d249e08f0dcff43d9b78851d216fc1.tar.gz lwn-1c59b483a3d249e08f0dcff43d9b78851d216fc1.zip | |
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: Kent Overstreet <kent.overstreet@linux.dev>
Diffstat (limited to 'fs/bcachefs/errcode.h')
| -rw-r--r-- | fs/bcachefs/errcode.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/bcachefs/errcode.h b/fs/bcachefs/errcode.h index c73a5e78e260..c8ac08e5548b 100644 --- a/fs/bcachefs/errcode.h +++ b/fs/bcachefs/errcode.h @@ -93,6 +93,7 @@ x(ENOSPC, ENOSPC_sb_members) \ x(ENOSPC, ENOSPC_sb_crypt) \ x(ENOSPC, ENOSPC_btree_slot) \ + x(ENOSPC, ENOSPC_snapshot_tree) \ x(0, open_buckets_empty) \ x(0, freelist_empty) \ x(BCH_ERR_freelist_empty, no_buckets_found) \ |
