rclone/backend
Nick Craig-Wood 9bf78d0373 local: fix "Failed to read metadata: function not implemented" on old Linux kernels
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/
2022-10-07 14:14:16 +01:00
..
alias build: add package comments to silence revive linter 2022-08-28 13:43:51 +02:00
all hubic: remove backend as service has now shutdown - fixes #6481 2022-10-05 13:33:37 +01:00
amazonclouddrive build: reformat comments to pass go1.19 vet 2022-08-05 16:35:41 +01:00
azureblob build: add package comments to silence revive linter 2022-08-28 13:43:51 +02:00
b2 all: fix spelling across the project 2022-08-30 11:16:26 +02:00
box all: fix spelling across the project 2022-08-30 11:16:26 +02:00
cache build: add package comments to silence revive linter 2022-08-28 13:43:51 +02:00
chunker all: fix spelling across the project 2022-08-30 11:16:26 +02:00
combine all: fix spelling across the project 2022-08-30 11:16:26 +02:00
compress compress: add extra debugging in case we have a repeat of #6434 2022-09-18 11:31:11 +01:00
crypt all: fix spelling across the project 2022-08-30 11:16:26 +02:00
drive filter: Fix incorrect filtering with UseFilter context flag and wrapping backends 2022-09-05 16:19:50 +01:00
dropbox all: fix spelling across the project 2022-08-30 11:16:26 +02:00
fichier all: fix spelling across the project 2022-08-30 11:16:26 +02:00
filefabric all: fix spelling across the project 2022-08-30 11:16:26 +02:00
ftp ftp: increase timeouts on tests as they were failing locally 2022-09-19 19:45:52 +01:00
googlecloudstorage all: fix spelling across the project 2022-08-30 11:16:26 +02:00
googlephotos onedrive: cleanup brand name 2022-08-30 10:23:29 +02:00
hasher hasher: support metadata 2022-06-29 17:30:37 +01:00
hdfs build: add package comments to silence revive linter 2022-08-28 13:43:51 +02:00
hidrive all: fix spelling across the project 2022-08-30 11:16:26 +02:00
http docs: skip "Connection" suffix from FTP, SSH/SFTP and HTTP backend names 2022-06-21 23:43:00 +02:00
internetarchive all: fix spelling across the project 2022-08-30 11:16:26 +02:00
jottacloud all: fix spelling across the project 2022-08-30 11:16:26 +02:00
koofr all: fix spelling across the project 2022-08-30 11:16:26 +02:00
local local: fix "Failed to read metadata: function not implemented" on old Linux kernels 2022-10-07 14:14:16 +01:00
mailru build: add package comments to silence revive linter 2022-08-28 13:43:51 +02:00
mega all: fix spelling across the project 2022-08-30 11:16:26 +02:00
memory build: reformat comments to pass go1.19 vet 2022-08-05 16:35:41 +01:00
netstorage all: fix spelling across the project 2022-08-30 11:16:26 +02:00
onedrive onedrive: disable change notify in China region since it is not supported 2022-09-16 16:57:29 +01:00
opendrive build: add package comments to silence revive linter 2022-08-28 13:43:51 +02:00
pcloud all: fix spelling across the project 2022-08-30 11:16:26 +02:00
premiumizeme build: reformat comments to pass go1.19 vet 2022-08-05 16:35:41 +01:00
putio build: add package comments to silence revive linter 2022-08-28 13:43:51 +02:00
qingstor build: add package comments to silence revive linter 2022-08-28 13:43:51 +02:00
s3 s3: add --s3-sse-customer-key-base64 to supply keys with binary data 2022-09-17 17:28:44 +01:00
seafile onedrive: cleanup brand name 2022-08-30 10:23:29 +02:00
sftp sftp: fix directory creation races 2022-09-14 16:45:35 +01:00
sharefile build: reformat comments to pass go1.19 vet 2022-08-05 16:35:41 +01:00
sia build: add package comments to silence revive linter 2022-08-28 13:43:51 +02:00
smb smb: backend to support SMB - fixes #2042 2022-09-30 16:10:57 +01:00
storj build: reformat comments to pass go1.19 vet 2022-08-05 16:35:41 +01:00
sugarsync onedrive: cleanup brand name 2022-08-30 10:23:29 +02:00
swift hubic: remove backend as service has now shutdown - fixes #6481 2022-10-05 13:33:37 +01:00
union build: add package comments to silence revive linter 2022-08-28 13:43:51 +02:00
uptobox all: fix spelling across the project 2022-08-30 11:16:26 +02:00
webdav onedrive: cleanup brand name 2022-08-30 10:23:29 +02:00
yandex build: add package comments to silence revive linter 2022-08-28 13:43:51 +02:00
zoho all: fix spelling across the project 2022-08-30 11:16:26 +02:00