speculatively use remote's configured chunk size as a fallback
authorJoey Hess <joeyh@joeyh.name>
Thu, 22 Oct 2020 16:57:58 +0000 (12:57 -0400)
committerJoey Hess <joeyh@joeyh.name>
Thu, 22 Oct 2020 17:11:06 +0000 (13:11 -0400)
commitdad4be97c2057db1ef3a13bb983d1701a90c9069
tree301749446432714df7f790b637015b9b52a19266
parentb3345eb4ab78098f45ecffe5534494b5b9fcff7c
speculatively use remote's configured chunk size as a fallback

When a special remote has chunking enabled, but no chunk sizes are
recorded (or the recorded ones are not found), speculatively try chunks
using the configured chunk size.

This makes eg, git-annex fsck --from remote be able to fix up the
location log of a file that the git-annex branch does not indicate is
stored on the remote.

Note that fsck does *not* fix up the chunk log to indicate the chunk
size. So, changing the chunk config of the remote after that will still
prevent accessing the chunks stored on it. Maybe fsck should, but I
wanted to start with this and see if it's needed.
CHANGELOG
Remote/Helper/Chunked.hs
doc/bugs/fsck_--key_without___34__chunking__34___information_in_git-annex_does_not_try_chunks/comment_1_5d11bb90105b4d0cf14f85e6d8795023._comment [new file with mode: 0644]
doc/bugs/fsck_--key_without___34__chunking__34___information_in_git-annex_does_not_try_chunks/comment_2_f48e4d3571a8fc2b45fbaad7a9f8fb60._comment [new file with mode: 0644]