]> www.infradead.org Git - users/hch/xfsprogs.git/commit
xfs_scrub: return bytes verified from a SCSI VERIFY command
authorDarrick J. Wong <darrick.wong@oracle.com>
Thu, 17 Oct 2019 02:35:26 +0000 (22:35 -0400)
committerEric Sandeen <sandeen@sandeen.net>
Thu, 17 Oct 2019 02:35:26 +0000 (22:35 -0400)
commit323ef14c89b22fdf9265bba4f5f33b7bc891a33e
tree2ae8ee5c890f76196777067c4bc409035f84c888
parent29c4f385a701fb2c7f4a425e84b8e1f8a1c7e7a9
xfs_scrub: return bytes verified from a SCSI VERIFY command

Since disk_scsi_verify and pread are interchangeably called from
disk_read_verify(), we must return the number of bytes verified (or -1)
just like what pread returns.  This doesn't matter now due to bugs in
scrub, but we're about to fix those bugs.

Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Reviewed-by: Eric Sandeen <sandeen@redhat.com>
Signed-off-by: Eric Sandeen <sandeen@sandeen.net>
scrub/disk.c