1
mirror of https://github.com/rclone/rclone synced 2024-12-02 11:53:45 +01:00
rclone/backend/local
Nick Craig-Wood 0bcf4769fe local: make --local-no-updated provide a consistent view of the objects
Before this change the --local-no-updated flag would not error if the
files changed in size during the transfer. The file could still be
read beyond the size advertised though which caused problems with
certain backends.

After this change we attempt to provide a consistent view of the file
once it has been opened.

Once the file has had stat() called on it for the first time we

- Only transfer the size that stat gave
- Only checksum the size that stat gave
- Don't update the stat info for the file

This means that files that are extending can be transferred - rclone
will transfer the length it saw the first time it listed the file.

See: https://forum.rclone.org/t/transport-connection-broken/16494/21
2020-06-27 10:00:43 +01:00
..
aaaa backend/local: Avoid polluting page cache when uploading local files to remote backends 2019-08-08 23:41:52 +01:00
about_unix.go build: fix up package paths after repo move 2019-07-28 18:47:38 +01:00
about_windows.go build: fix up package paths after repo move 2019-07-28 18:47:38 +01:00
encode_darwin.go backends: move encoding definitions from fs/encodings 2020-01-16 14:40:36 +00:00
encode_other.go backends: move encoding definitions from fs/encodings 2020-01-16 14:40:36 +00:00
encode_windows.go backends: move encoding definitions from fs/encodings 2020-01-16 14:40:36 +00:00
fadvise_other.go backend/local: Avoid polluting page cache when uploading local files to remote backends 2019-08-08 23:41:52 +01:00
fadvise_unix.go backend/local: fadvise run syscall on a dedicated go routine 2019-08-14 21:01:39 +01:00
lchtimes_unix.go local: when using -l fix setting modification times of symlinks #1152 2019-01-28 13:47:27 +00:00
lchtimes.go local: when using -l fix setting modification times of symlinks #1152 2019-01-28 13:47:27 +00:00
local_internal_test.go Remove backend dependency from fs/hash 2019-10-01 16:29:58 +01:00
local_test.go build: fix up package paths after repo move 2019-07-28 18:47:38 +01:00
local.go local: make --local-no-updated provide a consistent view of the objects 2020-06-27 10:00:43 +01:00
read_device_other.go Implement new backend config system 2018-07-16 21:20:47 +01:00
read_device_unix.go build: fix up package paths after repo move 2019-07-28 18:47:38 +01:00
remove_other.go local: retry remove on Windows sharing violation error #2202 2018-04-07 17:36:26 +01:00
remove_test.go local: retry remove on Windows sharing violation error #2202 2018-04-07 17:36:26 +01:00
remove_windows.go build: fix up package paths after repo move 2019-07-28 18:47:38 +01:00
tests_test.go backend: adjust backends to have encoding parameter 2020-01-16 14:40:36 +00:00