onProgress

abstract fun onProgress(phase: VerifyPhase, bytesChecked: Long, bytesTotal: Long)(source)

bytesChecked of bytesTotal are the phase's own bytes, so they restart at each phase; bytesTotal is an estimate made when the phase starts. Throwing from here stops the scrub with that exception.