1
0
mirror of https://github.com/rclone/rclone.git synced 2025-02-04 05:08:23 +02:00
Nick Craig-Wood f3f743c3f9 vfs: fix download loop when file size shrunk
Before this change, if a file shrunk in size on the remote then rclone
could get into an loop trying to download the file forever.

The symptom was repeating errors like this:

    vfs cache: restart download failed: failed to start downloader: failed to open downloader: vfs reader: failed to open source file: invalid seek position

The fix was to check that file size in various places and makes sure
that we weren't trying to download too much data.

This was a problems with backends (like s3) which update the size of
the object on Open to the actual size of the object.
2024-03-26 17:32:10 +00:00
..
2020-10-14 15:21:31 +01:00
2019-04-15 21:49:58 +01:00
2023-08-22 12:52:13 +01:00
2022-11-07 11:41:47 +00:00