diff options
| author | Kent Overstreet <kent.overstreet@linux.dev> | 2025-03-17 13:58:51 -0400 |
|---|---|---|
| committer | Kent Overstreet <kent.overstreet@linux.dev> | 2025-03-24 09:50:35 -0400 |
| commit | 92c7789a9ed892da60cb5da2bcb6278551e2eb34 (patch) | |
| tree | a7d8d35d53debb2a65d8b6a080e14f256efc3358 /fs/bcachefs/errcode.h | |
| parent | bcachefs: bch2_sb_validate() doesn't need bch_sb_handle (diff) | |
| download | linux-92c7789a9ed892da60cb5da2bcb6278551e2eb34.tar.gz linux-92c7789a9ed892da60cb5da2bcb6278551e2eb34.zip | |
bcachefs: Validate bch_sb.offset field
This was missed - but it needs to be correct for the superblock recovery
tool that scans the start and end of the device for backup superblocks:
we don't want to pick up superblocks that belong to a different
partition that starts at a different offset.
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 493cae4efc37..cb27de6ffad6 100644 --- a/fs/bcachefs/errcode.h +++ b/fs/bcachefs/errcode.h @@ -231,6 +231,7 @@ x(BCH_ERR_invalid_sb, invalid_sb_csum) \ x(BCH_ERR_invalid_sb, invalid_sb_block_size) \ x(BCH_ERR_invalid_sb, invalid_sb_uuid) \ + x(BCH_ERR_invalid_sb, invalid_sb_offset) \ x(BCH_ERR_invalid_sb, invalid_sb_too_many_members) \ x(BCH_ERR_invalid_sb, invalid_sb_dev_idx) \ x(BCH_ERR_invalid_sb, invalid_sb_time_precision) \ |
