directory CoW on retrieve
authorJoey Hess <joeyh@joeyh.name>
Wed, 14 Apr 2021 18:43:08 +0000 (14:43 -0400)
committerJoey Hess <joeyh@joeyh.name>
Wed, 14 Apr 2021 19:05:12 +0000 (15:05 -0400)
commit7bb93896afd209bd672dc15e11efaf14113861f7
treebe88b92c2a3632439c09bdde70de2c27225e1fce
parenta36be49b0111d1afec8c063c254f8f9d4b70c3cd
directory CoW on retrieve

directory: When cp supports reflinks, use it when getting content from a
directory special remote.

Not yet for imports from directory though, and not for store.

Note that, when it's chunked, using cp --reflink would not speed it up, and
when reflink was not supported, would unnecessarily write the chunk to a
file before reading it back in. So, only using a fileRetriever in the
NoChunks case is necessary to keep chunking fast.

fileCopier is told not to verify, because the special remote interface
does not yet support verification in passing. AFAICS, fileCopies can
never return False when not verifying so the added giveup should never
actually happen.
CHANGELOG
Remote/Directory.hs