diff options
| author | Kent Overstreet <kent.overstreet@linux.dev> | 2024-03-22 23:29:23 +0300 |
|---|---|---|
| committer | Kent Overstreet <kent.overstreet@linux.dev> | 2024-04-01 03:36:11 +0300 |
| commit | ec9cc18fc2e65b08c588e01f24aaeb71551a7132 (patch) | |
| tree | af145579dc99b4b2f90f9ddf72f7f20f6df45106 /lib/crypto/mpi/mpi-sub-ui.c | |
| parent | 63332394c7e1f4f26e8e5b1387212016aaa7eae2 (diff) | |
| download | linux-ec9cc18fc2e65b08c588e01f24aaeb71551a7132.tar.xz | |
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 'lib/crypto/mpi/mpi-sub-ui.c')
0 files changed, 0 insertions, 0 deletions
