rclone/vfs/vfscache
Nick Craig-Wood 18ccf0f871 vfs: detect and recover from a file being removed externally from the cache
Before this change if a file was removed from the cache while rclone
is running then rclone would not notice and proceed to re-create it
full of zeros.

This change notices files that we expect to have data in going missing
and if they do logs an ERROR recovers.

It isn't recommended deleting files from the cache manually with
rclone running!

See: https://forum.rclone.org/t/corrupted-data-streaming-after-vfs-meta-files-removed/18997
Fixes #4602
2020-09-18 10:30:02 +01:00
..
downloaders vfs: support synchronous cache space recovery upon ENOSPC 2020-08-25 21:12:06 +01:00
writeback vfs cache: make logging consistent and remove some debug logging 2020-07-06 17:32:53 +01:00
cache_test.go vfs: support synchronous cache space recovery upon ENOSPC 2020-08-25 21:12:06 +01:00
cache.go vfs: Quiet removeNotInUse logging to debug when not removing 2020-09-02 11:55:20 +01:00
item_test.go vfs: Add recovered items on cache reload to directory listings 2020-06-30 12:03:39 +01:00
item.go vfs: detect and recover from a file being removed externally from the cache 2020-09-18 10:30:02 +01:00