1
mirror of https://github.com/rclone/rclone synced 2024-11-29 07:55:12 +01:00
rclone/backend/local
Riccardo Iaconelli df4e6079f1 local: new flag --local-zero-size-links to fix sync on some virtual filesystems
Assume the Stat size of links is zero (and read them instead)

On some virtual filesystems (such ash LucidLink), reading a link size via a
Stat call always returns 0.
However, on unix it reads as the length of the text in the link. This may
cause errors like this when syncing:

    Failed to copy: corrupted on transfer: sizes differ 0 vs 13

Setting this flag causes rclone to read the link and use that as the size of
the link instead of 0 which in most cases fixes the problem.

Fixes #4950

Signed-off-by: Riccardo Iaconelli <riccardo@kde.org>
2021-01-27 18:13:16 +00: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: new flag --local-zero-size-links to fix sync on some virtual filesystems 2021-01-27 18:13:16 +00: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