rclone/fs
Nick Craig-Wood 6d0063d685 operations: Make --max-transfer more accurate
Before this change we checked the transfer was out of range only
before the Read call. This means that we returned all the data to the
reader before declaring an error. This means that some backends wrote
the file even though an error was returned.

This fix checks the transfer after the Read as well, and chops the
excess characters off the read data if we are over the limit so that
we don't ever deliver all the data.

This fixes the tests introduced as part of 6f1766dd9e and #2672
on backends other than local.
2020-03-13 16:40:38 +00:00
..
accounting operations: Make --max-transfer more accurate 2020-03-13 16:40:38 +00:00
asyncreader asyncreader: fix EOF error 2019-12-10 12:12:29 +00:00
cache fs/cache: test for fix cached values pointing to files #3424 2019-08-10 08:39:56 +01:00
chunkedreader chunkedreader: disable hash calculation for first segment 2019-11-11 16:20:27 +00:00
config fs: Use --cutoff-mode hard,soft,catious instead of 3 --max-transfer-mode flags 2020-03-01 09:49:55 +00:00
dirtree build: fix up package paths after repo move 2019-07-28 18:47:38 +01:00
driveletter Break the fs package up into smaller parts. 2018-01-15 17:51:14 +00:00
filter filter: prevent mix opts when filesfrom is present - fixes #3599 2019-10-11 16:17:02 +01:00
fserrors fserrors: Make a new NoLowLevelRetry error and don't retry them #3777 2019-12-06 10:54:03 +00:00
fshttp doc: add desc about gzip and http dump 2020-01-23 12:42:44 +00:00
fspath config: check config names more carefully and report errors - fixes #3506 2019-09-06 12:07:09 +01:00
hash hash: fix hash names for DropboxHash and CRC-32 2019-10-30 12:20:10 +00:00
list build: fix up package paths after repo move 2019-07-28 18:47:38 +01:00
log log: factor flags into logflags package - fixes #3792 2020-01-09 13:25:37 +00:00
march sync: add --no-check-dest flag - fixes #3616 2019-12-29 16:47:57 +00:00
object Remove backend dependency from fs/hash 2019-10-01 16:29:58 +01:00
operations operations: Make --max-transfer more accurate 2020-03-13 16:40:38 +00:00
rc rcd: Add Prometheus metrics support - fixes #3858 2020-03-01 09:58:34 +00:00
sync accounting: Correct exitcode on Transfer Limit Exceeded flag. Fixes #3203 2020-03-10 12:00:10 +00:00
version build: fix up package paths after repo move 2019-07-28 18:47:38 +01:00
walk Fix error counter - fixes #3650 2019-11-18 14:13:02 +00:00
bwtimetable_test.go fs: added weekday schedule into --bwlimit - fixes #1822 2018-06-17 18:38:09 +01:00
bwtimetable.go fs: added weekday schedule into --bwlimit - fixes #1822 2018-06-17 18:38:09 +01:00
config_list_test.go fs: fix tests for *SepList 2018-08-21 10:58:59 +01:00
config_list.go Make flags show up with their proper names, eg SizeSuffix rather than int 2019-02-07 11:57:26 +00:00
config.go fs: Use --cutoff-mode hard,soft,catious instead of 3 --max-transfer-mode flags 2020-03-01 09:49:55 +00:00
cutoffmode_test.go fs: Use --cutoff-mode hard,soft,catious instead of 3 --max-transfer-mode flags 2020-03-01 09:49:55 +00:00
cutoffmode.go fs: Use --cutoff-mode hard,soft,catious instead of 3 --max-transfer-mode flags 2020-03-01 09:49:55 +00:00
deletemode.go Break the fs package up into smaller parts. 2018-01-15 17:51:14 +00:00
dir.go Add context propagation to rclone 2019-06-19 11:59:46 +01:00
direntries_test.go build: fix up package paths after repo move 2019-07-28 18:47:38 +01:00
direntries.go fs: Allow sync of a file and a directory with the same name 2019-06-09 15:57:05 +01:00
dump_test.go Fix broken flag type tests 2019-02-07 16:42:26 +00:00
dump.go Make flags show up with their proper names, eg SizeSuffix rather than int 2019-02-07 11:57:26 +00:00
fs_test.go fs: Make prefix free backend config read prefix free env var also 2019-09-14 18:26:07 +01:00
fs.go operations: make NewOverrideObjectInfo public and factor uses 2020-01-18 11:41:33 +00:00
log_test.go Break the fs package up into smaller parts. 2018-01-15 17:51:14 +00:00
log.go log: add object and objectType to json logs 2019-08-02 15:57:09 +01:00
mimetype.go Add context propagation to rclone 2019-06-19 11:59:46 +01:00
options_test.go fs: Adjust RangeOption.Decode to return -1 for read to end 2018-01-27 14:31:29 +00:00
options.go fs: fix FixRangeOption so it works with 0 length files 2019-08-03 18:25:44 +01:00
parseduration_test.go fs: Higher units for ETA - fixes #3221 2019-07-01 12:09:19 +01:00
parseduration.go fs: Higher units for ETA - fixes #3221 2019-07-01 12:09:19 +01:00
sizesuffix_test.go fs: Implement Scan method for SizeSuffix and Duration 2018-07-16 08:50:52 +01:00
sizesuffix.go fix spelling 2019-04-30 14:12:18 +02:00
version.go Start v1.51.0-DEV development 2020-02-01 12:32:21 +00:00
versioncheck.go build: update to use go1.14 for the build 2020-02-26 21:26:47 +00:00