summaryrefslogtreecommitdiff
path: root/fs/bcachefs/sb-errors_format.h
diff options
context:
space:
mode:
authorKent Overstreet <kent.overstreet@linux.dev>2024-06-17 09:26:54 -0400
committerKent Overstreet <kent.overstreet@linux.dev>2024-06-19 18:27:23 -0400
commit9e7cfb35e2668e542c333ed3ec4b0a951dd332ee (patch)
treed7c5f02d40f9822fa84d3d4645a6907db4aa60af /fs/bcachefs/sb-errors_format.h
parente3fd3faa453ce4cf4b6a0f3e29ee77d5d1b243a8 (diff)
bcachefs: Check for invalid btree IDs
We can only handle btree IDs up to 62, since the btree id (plus the type for interior btree nodes) has to fit ito a 64 bit bitmask - check for invalid ones to avoid invalid shifts later. Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
Diffstat (limited to 'fs/bcachefs/sb-errors_format.h')
-rw-r--r--fs/bcachefs/sb-errors_format.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/fs/bcachefs/sb-errors_format.h b/fs/bcachefs/sb-errors_format.h
index 84d2763bd597..1d1251f1bb20 100644
--- a/fs/bcachefs/sb-errors_format.h
+++ b/fs/bcachefs/sb-errors_format.h
@@ -273,7 +273,11 @@
x(sb_clean_entry_overrun, 267) \
x(btree_ptr_v2_written_0, 268) \
x(subvol_snapshot_bad, 269) \
- x(subvol_inode_bad, 270)
+ x(subvol_inode_bad, 270) \
+ x(alloc_key_stripe_sectors_wrong, 271) \
+ x(accounting_mismatch, 272) \
+ x(accounting_replicas_not_marked, 273) \
+ x(invalid_btree_id, 274)
enum bch_sb_error_id {
#define x(t, n) BCH_FSCK_ERR_##t = n,