mirror of
https://github.com/rclone/rclone.git
synced 2024-11-30 04:23:48 +08:00
9bf78d0373
Before this change rclone used statx() to read the metadata for files from the local filesystem when `-M` was in use. Unfortunately statx() was only introduced in kernel 4.11 which was released in April 2017 so there are current systems (eg Centos 7) still on kernel versions which don't support statx(). This patch checks to see if statx() is available and if it isn't, it falls back to using fstatat() which was introduced in Linux 2.6.16 which is guaranteed for all Go versions. See: https://forum.rclone.org/t/metadata-from-linux-local-s3-failed-to-copy-failed-to-read-metadata-from-source-object-function-not-implemented/33233/ |
||
---|---|---|
.. | ||
about_unix.go | ||
about_windows.go | ||
fadvise_other.go | ||
fadvise_unix.go | ||
lchtimes_unix.go | ||
lchtimes.go | ||
local_internal_test.go | ||
local_test.go | ||
local.go | ||
metadata_bsd.go | ||
metadata_linux.go | ||
metadata_other.go | ||
metadata_unix.go | ||
metadata_windows.go | ||
metadata.go | ||
read_device_other.go | ||
read_device_unix.go | ||
remove_other.go | ||
remove_test.go | ||
remove_windows.go | ||
setbtime_windows.go | ||
setbtime.go | ||
symlink_other.go | ||
symlink.go | ||
tests_test.go | ||
xattr_unsupported.go | ||
xattr.go |