diff options
| author | Darrick J. Wong <[email protected]> | 2024-12-02 18:57:42 +0000 |
|---|---|---|
| committer | Darrick J. Wong <[email protected]> | 2024-12-13 01:45:13 +0000 |
| commit | c004a793e0ec34047c3bd423bcd8966f5fac88dc (patch) | |
| tree | ff165cab630365f859d67d7cd522f24d70a4e9f9 /fs/xfs/xfs_exchrange.c | |
| parent | xfs: check pre-metadir fields correctly (diff) | |
| download | kernel-c004a793e0ec34047c3bd423bcd8966f5fac88dc.tar.gz kernel-c004a793e0ec34047c3bd423bcd8966f5fac88dc.zip | |
xfs: fix zero byte checking in the superblock scrubber
The logic to check that the region past the end of the superblock is all
zeroes is wrong -- we don't want to check only the bytes past the end of
the maximally sized ondisk superblock structure as currently defined in
xfs_format.h; we want to check the bytes beyond the end of the ondisk as
defined by the feature bits.
Port the superblock size logic from xfs_repair and then put it to use in
xfs_scrub.
Cc: <[email protected]> # v4.15
Fixes: 21fb4cb1981ef7 ("xfs: scrub the secondary superblocks")
Signed-off-by: "Darrick J. Wong" <[email protected]>
Reviewed-by: Christoph Hellwig <[email protected]>
Diffstat (limited to 'fs/xfs/xfs_exchrange.c')
0 files changed, 0 insertions, 0 deletions
