incremental verify for chunked remotes
authorJoey Hess <joeyh@joeyh.name>
Wed, 11 Aug 2021 18:42:49 +0000 (14:42 -0400)
committerJoey Hess <joeyh@joeyh.name>
Wed, 11 Aug 2021 18:42:49 +0000 (14:42 -0400)
commit7eb3742e4b76d1d7a487c2c53bf25cda4ee5df43
treed6f7dca550e45afae5103393d4bce4935725f26e
parentc20358b671bb23ba03a82e108d2811c5b42a9bac
incremental verify for chunked remotes

Simply feed each chunk in turn to the incremental verifier.

When resuming an interrupted retrieve, it does not do incremental
verification. That would need to read the file, up to the resume point,
and feed it to the incremental verifier. That seems easy to get wrong.
Also it would mean extra work done before the transfer can start. Which
would complicate displaying progress, and would perhaps not appear to the
user as if it was resuming from where it left off. Instead, in that
situation, return UnVerified, and let the verification be done in a
separate pass.

Granted, Annex.CopyFile does manage all that, but it's not complicated
by dealing with chunks too.

Sponsored-by: Dartmouth College's DANDI project
CHANGELOG
Remote/Helper/Chunked.hs
doc/todo/OPT__58_____34__bundle__34___get_+_check___40__of_checksum__41___in_a_single_operation/comment_13_a19823409648828b8b9f7a0f2fa7d935._comment [new file with mode: 0644]