Nick Craig-Wood 9c86759076 operations: fix partial name collisions for non --inplace copies
In this commit:

c63f1865f36058e1 operations: copy: generate stable partial suffix

We made the partial suffix for non inplace copies stable. This was a
hash based off the file fingerprint.

However, given a directory of files which have the same fingerprint
the partial suffix collides. On some backends (eg the local backend)
the fingerprint is just the size and modification time so files with
different contents can collide.

The effect of collisions was hash failures on copy when using
--transfers > 1. These copies invariably retried successfully which
probably explains why this bug hasn't been reported.

This fixes the problem by adding the file name to the hash.

It also makes sure the hash is always represented as 8 hex bytes for
consistency.
2025-02-01 11:20:15 +00:00
..
2022-11-07 11:41:47 +00:00
2023-10-23 15:43:55 +01:00
2018-08-21 10:58:59 +01:00
2024-12-13 12:43:20 +00:00
2024-08-15 22:01:52 +01:00
2025-01-12 16:31:12 +00:00