Commit Graph
7 Commits
Author SHA1 Message Date
Lajpat Bishnoi ae1ca5c2c0 filelu: fix multi-thread downloads re-downloading the whole file
Open turned the range and seek options into an offset and count, but it
never sent a Range header. It downloaded the file from the start and
threw away everything before the offset. Multi-thread copies open each
chunk separately, so a 5 GiB file in 80 chunks pulled about 200 GB from
the server and took over 30 minutes instead of under one. rclone mount
and resumed transfers were affected the same way.

Download through lib/rest, which turns the range and seek options into
a Range header. The FileLu file servers answer Range requests with 206
Partial Content.

Fixes #10305
2026-11-17 12:02:40 +00:00
Nick Craig-Wood e1bf9405e2 filelu: fix truncated files being uploaded successfully when the source ends early
If the source supplied fewer bytes than its declared size, the
truncated file was stored and the upload reported success with the
object claiming the declared size.

Count the bytes actually read from the source and if they do not match
the declared size, remove the truncated file and return an error.

This was found by the new TestRcatSizeShortEOF integration test.
2026-08-11 19:32:12 +01:00
kingston125 ae778f1413 filelu: migrate API calls to lib/rest 2026-02-16 17:45:42 +00:00
kingston125 eef0b39a2c filelu: add multipart upload support with configurable cutoff 2026-02-05 13:09:16 +00:00
kingston125 1049f88a1d filelu: add comment for response body wrapping 2026-02-05 13:09:16 +00:00
kingston125 327ca25a4d filelu: avoid buffering entire file in memory
Avoid buffering the entire file in memory during download, especially
for large files.
2026-02-05 13:09:16 +00:00
kingston125 4a1b5b864c Add FileLu cloud storage backend 2025-06-06 15:15:07 +01:00