]> git-server-git.apps.pok.os.sepia.ceph.com Git - xfstests-dev.git/commit
xfs: test xfs_scrub phase 6 media error reporting
authorDarrick J. Wong <djwong@kernel.org>
Thu, 3 Nov 2022 04:17:06 +0000 (21:17 -0700)
committerZorro Lang <zlang@kernel.org>
Thu, 3 Nov 2022 05:47:56 +0000 (13:47 +0800)
commit1b3f0e1b6c9e2f03091c4d95459b79be119ad4ed
treec6545c3f2ad75c777970bf70c360e2ac3a224454
parentcb404cfcae5127bdfdb295c1f92f1643f4598ef4
xfs: test xfs_scrub phase 6 media error reporting

Add new helpers to dmerror to provide for marking selected ranges
totally bad -- both reads and writes will fail.  Create a new test for
xfs_scrub to check that it reports media errors in data files correctly.

Signed-off-by: Darrick J. Wong <djwong@kernel.org>
Reviewed-by: Zorro Lang <zlang@redhat.com>
Signed-off-by: Zorro Lang <zlang@kernel.org>
common/dmerror
common/xfs
tests/xfs/556 [new file with mode: 0755]
tests/xfs/556.out [new file with mode: 0644]