1
mirror of https://github.com/rclone/rclone synced 2024-11-26 04:07:22 +01:00
rclone/backend
Nick Craig-Wood b91c349cd5 local: fix hash invalidation which caused errors with local crypt mount
Before this fix if a file was updated, but to the same length and
timestamp then the local backend would return the wrong (cached)
hashes for the object.

This happens regularly on a crypted local disk mount when the VFS
thinks files have been changed but actually their contents are
identical to that written previously. This is because when files are
uploaded their nonce changes so the contents of the file changes but
the timestamp and size remain the same because the file didn't
actually change.

This causes errors like this:

    ERROR: file: Failed to copy: corrupted on transfer: md5 crypted
    hash differ "X" vs "Y"

This turned out to be because the local backend wasn't clearing its
cache of hashes when the file was updated.

This fix clears the hash cache for Update and Remove.

It also puts a src and destination in the crypt message to make future
debugging easier.

Fixes #4031
2021-11-24 12:09:34 +00:00
..
alias docs: punctuation cleanup 2021-10-20 22:56:19 +02:00
all hasher: add hasher backend #5587 2021-10-20 19:11:54 +03:00
amazonclouddrive Remove github.com/pkg/errors and replace with std library version 2021-11-07 11:53:30 +00:00
azureblob azureblob: raise --azureblob-upload-concurrency to 16 by default 2021-11-18 16:09:02 +00:00
b2 docs: add a note about the B2 download_url format 2021-11-23 17:57:34 +00:00
box Remove github.com/pkg/errors and replace with std library version 2021-11-07 11:53:30 +00:00
cache Fix repeated error messages after pkg/errors removal 2021-11-15 17:58:40 +00:00
chunker Remove github.com/pkg/errors and replace with std library version 2021-11-07 11:53:30 +00:00
compress Remove github.com/pkg/errors and replace with std library version 2021-11-07 11:53:30 +00:00
crypt local: fix hash invalidation which caused errors with local crypt mount 2021-11-24 12:09:34 +00:00
drive Remove github.com/pkg/errors and replace with std library version 2021-11-07 11:53:30 +00:00
dropbox dropbox: speed up directory listings by specifying 1000 items in a chunk 2021-11-11 11:14:22 +00:00
fichier Remove github.com/pkg/errors and replace with std library version 2021-11-07 11:53:30 +00:00
filefabric Remove github.com/pkg/errors and replace with std library version 2021-11-07 11:53:30 +00:00
ftp ftp: add --ftp-ask-password to prompt for password when needed 2021-11-10 17:34:14 +00:00
googlecloudstorage Remove github.com/pkg/errors and replace with std library version 2021-11-07 11:53:30 +00:00
googlephotos Remove github.com/pkg/errors and replace with std library version 2021-11-07 11:53:30 +00:00
hasher hashsum: support creating hash from data received on stdin 2021-11-11 15:16:45 +01:00
hdfs hdfs: add file and directory move/rename support 2021-11-11 16:41:43 +00:00
http Remove github.com/pkg/errors and replace with std library version 2021-11-07 11:53:30 +00:00
hubic Remove github.com/pkg/errors and replace with std library version 2021-11-07 11:53:30 +00:00
jottacloud jottacloud: Add support for Tele2 Cloud 2021-11-11 12:32:23 +00:00
koofr Create direct share link for "koofr" backend 2021-10-23 15:00:33 +03:00
local local: fix hash invalidation which caused errors with local crypt mount 2021-11-24 12:09:34 +00:00
mailru Remove github.com/pkg/errors and replace with std library version 2021-11-07 11:53:30 +00:00
mega mega: fix error handling broken by removal of github.com/pkg/errors 2021-11-09 13:43:45 +00:00
memory Remove github.com/pkg/errors and replace with std library version 2021-11-07 11:53:30 +00:00
onedrive onedrive: fix error handling broken by removal of github.com/pkg/errors 2021-11-09 13:43:45 +00:00
opendrive Remove github.com/pkg/errors and replace with std library version 2021-11-07 11:53:30 +00:00
pcloud Remove github.com/pkg/errors and replace with std library version 2021-11-07 11:53:30 +00:00
premiumizeme Remove github.com/pkg/errors and replace with std library version 2021-11-07 11:53:30 +00:00
putio Remove github.com/pkg/errors and replace with std library version 2021-11-07 11:53:30 +00:00
qingstor Remove github.com/pkg/errors and replace with std library version 2021-11-07 11:53:30 +00:00
s3 s3: Add Wasabi AP Northeast 2 endpoint info 2021-11-22 18:02:57 +00:00
seafile Remove github.com/pkg/errors and replace with std library version 2021-11-07 11:53:30 +00:00
sftp sftp: fix timeout on hashing large files by sending keepalives 2021-11-22 15:26:29 +00:00
sharefile Remove github.com/pkg/errors and replace with std library version 2021-11-07 11:53:30 +00:00
sia Remove github.com/pkg/errors and replace with std library version 2021-11-07 11:53:30 +00:00
sugarsync Remove github.com/pkg/errors and replace with std library version 2021-11-07 11:53:30 +00:00
swift Remove github.com/pkg/errors and replace with std library version 2021-11-07 11:53:30 +00:00
tardigrade Remove github.com/pkg/errors and replace with std library version 2021-11-07 11:53:30 +00:00
union union: fix treatment of remotes with // in 2021-11-23 17:41:12 +00:00
uptobox Remove github.com/pkg/errors and replace with std library version 2021-11-07 11:53:30 +00:00
webdav Remove github.com/pkg/errors and replace with std library version 2021-11-07 11:53:30 +00:00
yandex yandex: add permanent deletion support 2021-11-17 16:57:41 +00:00
zoho Remove github.com/pkg/errors and replace with std library version 2021-11-07 11:53:30 +00:00