git-annex/doc/todo/external_backends/comment_14_6edc4008ce8eec17e283dd7db8dbcbf0._comment
2020-07-27 11:31:00 -04:00

26 lines
952 B
Text

[[!comment format=mdwn
username="joey"
subject="""comment 14"""
date="2020-07-27T15:20:00Z"
content="""
> What is the advantage of a separate VERIFYCONTENT request, vs calling
> GENKEY and comparing the result?
Nothing for remotes using a hash. However, if the remote is using something
other than a hash, or a hash combined with something else, it might not be
able to regenerate the same key. It may still be able to detect
corrupted content, eg using the hash part of the key.
> Can the protocol specify that the file passed to GENKEY may be a named pipe
I can't think of any situation where git-annex would GENKEY before
it has the full content of a file available.
> add DEBUG and INFO requests
For INFO I'd rather wait for a use case. None of the current backends ever
need to display any messages, except for in the case of an exceptional error,
eg a hardware faulure where hashing. And ERROR would be fine for that.
DEBUG sure.
"""]]