]> git-server-git.apps.pok.os.sepia.ceph.com Git - xfsprogs-dev.git/commit
xfs_scrub: move disk media verification error injection
authorChristoph Hellwig <hch@lst.de>
Mon, 16 Mar 2026 21:05:17 +0000 (14:05 -0700)
committerDarrick J. Wong <djwong@kernel.org>
Thu, 9 Apr 2026 22:30:19 +0000 (15:30 -0700)
commit9cd59bf3cf78b17594236bbdcc58acae52161ac5
treecc9993490e97b5ac45ea57a418210ae86408873b
parent1ef66d39b75b967253595e9547dab918dd91aa43
xfs_scrub: move disk media verification error injection

This isn't really disk-related since it's a knob to make the
read_verify_pool pretend that the media is defective.  Move this code
before we add a new media verify path that doesn't require the disk
abstraction.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: "Darrick J. Wong" <djwong@kernel.org>
[djwong: split off from another hch patch, create a new commit message]
Signed-off-by: "Darrick J. Wong" <djwong@kernel.org>
scrub/disk.c
scrub/read_verify.c