Files
linux-stable-mirror/fs
Darrick J. WongandSasha Levin fc5859482d xfs: mark data structures corrupt on EIO and ENODATA
[ Upstream commit f39854a3fb ]

I learned a few things this year: first, blk_status_to_errno can return
ENODATA for critical media errors; and second, the scrub code doesn't
mark data structures as corrupt on ENODATA or EIO.

Currently, scrub failing to capture these errors isn't all that
impactful -- the checking code will exit to userspace with EIO/ENODATA,
and xfs_scrub will log a complaint and exit with nonzero status.  Most
people treat fsck tools failing as a sign that the fs is corrupt, but
online fsck should mark the metadata bad and keep moving.

Cc: stable@vger.kernel.org # v4.15
Fixes: 4700d22980 ("xfs: create helpers to record and deal with scrub problems")
Signed-off-by: Darrick J. Wong <djwong@kernel.org>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Carlos Maiolino <cem@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2026-03-04 07:20:48 -05:00
..
2025-08-15 12:04:51 +02:00
2025-10-02 13:40:41 +02:00
2026-01-11 15:19:20 +01:00
2026-03-04 07:20:12 -05:00
2026-03-04 07:20:25 -05:00
2026-01-11 15:19:22 +01:00
2026-01-17 16:39:33 +01:00
2025-10-02 13:40:41 +02:00
2025-03-28 21:58:51 +01:00
2025-10-29 14:04:35 +01:00
2026-01-11 15:19:22 +01:00