diff options
author | Kent Overstreet <kent.overstreet@linux.dev> | 2024-03-22 16:29:23 -0400 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@linux.dev> | 2024-03-31 20:36:11 -0400 |
commit | ec9cc18fc2e65b08c588e01f24aaeb71551a7132 (patch) | |
tree | af145579dc99b4b2f90f9ddf72f7f20f6df45106 /fs/bcachefs/btree_update.c | |
parent | 63332394c7e1f4f26e8e5b1387212016aaa7eae2 (diff) |
bcachefs: Add checks for invalid snapshot IDs
Previously, we assumed that keys were consistent with the snapshots
btree - but that's not correct as fsck may not have been run or may not
be complete.
This adds checks and error handling when using the in-memory snapshots
table (that mirrors the snapshots btree).
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
Diffstat (limited to 'fs/bcachefs/btree_update.c')
0 files changed, 0 insertions, 0 deletions