Skip to content
Commit ec9cc18f authored by Kent Overstreet's avatar Kent Overstreet
Browse files

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: default avatarKent Overstreet <kent.overstreet@linux.dev>
parent 63332394
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