1
mirror of https://github.com/rclone/rclone synced 2024-12-28 21:03:45 +01:00
rclone/backend/local
Nick Craig-Wood 6ef7178ee4 local: always use readlink to read symlink size
It was discovered on some Android systems, the stat size of a symlink
is different to the size that readlink returns.

This was giving errors like this

    transport connection broken: http: ContentLength=30 with Body length 28

There are enough exceptions to the size of readlink being different to
the size of stat that this patch now always does readlink to work out
the size of a symlink.

Since symlinks are relatively uncommon this shouldn't affect
performance too much and will mean that the size is always correct.

This deprecates the --local-zero-size-links flag which is now
effectively always enabled.

See: https://forum.rclone.org/t/problem-with-symlinks-and-links/23840/
2021-05-04 08:53:09 +01:00
..
about_unix.go local: return fs.ErrorDirNot found from About and Purge 2020-08-19 18:02:21 +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 build: make rclone build with wasm 2020-08-10 17:32:21 +01:00
lchtimes.go build: make rclone build with wasm 2020-08-10 17:32:21 +01:00
local_internal_test.go fs: Add context to NewFs #3257 #4685 2020-11-09 18:05:54 +00:00
local_test.go build: fix up package paths after repo move 2019-07-28 18:47:38 +01:00
local.go local: always use readlink to read symlink size 2021-05-04 08:53:09 +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
symlink_other.go local: continue listing files/folders when a circular symlink is detected 2020-11-12 11:32:55 +00:00
symlink.go local: continue listing files/folders when a circular symlink is detected 2020-11-12 11:32:55 +00:00
tests_test.go local: factor UNCPath into lib/file 2020-06-30 12:01:36 +01:00