Darrick J. Wong c004a793e0 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: <stable@vger.kernel.org> # v4.15
Fixes: 21fb4cb1981ef7 ("xfs: scrub the secondary superblocks")
Signed-off-by: "Darrick J. Wong" <djwong@kernel.org>
Reviewed-by: Christoph Hellwig <hch@lst.de>
2024-12-12 17:45:13 -08:00
..
2024-04-15 14:58:53 -07:00
2023-05-26 13:52:19 -07:00
2024-11-05 13:38:34 -08:00
2024-11-05 13:38:34 -08:00
2024-11-05 13:38:34 -08:00
2024-02-22 12:43:38 -08:00
2023-12-15 10:03:40 -08:00
2024-11-05 13:38:34 -08:00
2023-12-15 10:03:45 -08:00
2023-12-15 10:03:45 -08:00
2024-04-26 11:21:46 +05:30
2024-04-23 07:47:02 -07:00
2024-11-05 13:38:43 -08:00
2024-11-05 13:38:43 -08:00
2024-04-15 14:58:58 -07:00
2024-04-15 14:58:53 -07:00
2024-04-15 14:58:55 -07:00
2024-04-15 14:58:53 -07:00
2024-04-23 16:55:18 -07:00