1
mirror of https://github.com/rclone/rclone synced 2024-12-23 14:23:44 +01:00
rclone/fs/accounting
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_other.go Break the fs package up into smaller parts. 2018-01-15 17:51:14 +00:00
accounting_test.go operations: Make --max-transfer more accurate 2020-03-13 16:40:38 +00:00
accounting_unix.go build: fix up package paths after repo move 2019-07-28 18:47:38 +01:00
accounting.go operations: Make --max-transfer more accurate 2020-03-13 16:40:38 +00:00
inprogress.go build: fix up package paths after repo move 2019-07-28 18:47:38 +01:00
prometheus.go rcd: Add Prometheus metrics support - fixes #3858 2020-03-01 09:58:34 +00:00
stats_groups_test.go fs/accounting: add option to delete stats 2020-01-03 17:44:05 +00:00
stats_groups.go fs/accounting: Restore "Max number of stats groups reached" log line 2020-02-12 21:21:25 +00:00
stats_test.go fs/accounting: add option to delete stats 2020-01-03 17:44:05 +00:00
stats.go rcd: Add Prometheus metrics support - fixes #3858 2020-03-01 09:58:34 +00:00
stringset.go accounting: don't show entries in both transferring and checking 2019-11-19 13:22:33 +00:00
token_bucket_test.go build: fix up package paths after repo move 2019-07-28 18:47:38 +01:00
token_bucket.go build: fix up package paths after repo move 2019-07-28 18:47:38 +01:00
transfer.go Fix error counter - fixes #3650 2019-11-18 14:13:02 +00:00