]> git-server-git.apps.pok.os.sepia.ceph.com Git - xfsprogs-dev.git/commit
scrub: don't allocate disk for ioctl-based media verify
authorChristoph Hellwig <hch@lst.de>
Mon, 16 Mar 2026 21:20:05 +0000 (14:20 -0700)
committerDarrick J. Wong <djwong@kernel.org>
Thu, 9 Apr 2026 22:30:19 +0000 (15:30 -0700)
commitd0ba8a9348ae5e45087578557afe72dc4d231ff2
tree6fd6626703b95e5514d7b2c996d674dbef620587
parent02760878dd86b939dbcb3818a862a48116c60b66
scrub: don't allocate disk for ioctl-based media verify

When the kernel provides the data verification ioctl there is no point
in allocating struct disk and thus opening the underlying devices.
Refactor the code so that we don't have to do that, with the added
benefit of keeping the read verification self-contained in
read_verify.c for the case where the kernel provides the ioctl.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: "Darrick J. Wong" <djwong@kernel.org>
[djwong: break up patch]
Signed-off-by: "Darrick J. Wong" <djwong@kernel.org>
scrub/phase1.c