"rsync for cloud storage" - Google Drive, S3, Dropbox, Backblaze B2, One Drive, Swift, Hubic, Wasabi, Google Cloud Storage, Azure Blob, Azure Files, Yandex Files
Go azure-blobazure-blob-storageazure-filesbackblaze-b2cloud-storagedropboxencryptionftpfuse-filesystemgogolanggoogle-cloud-storagegoogle-driveonedriveopenstack-swiftrclones3sftpsyncwebdav
local: make source file being updated errors be NoLowLevelRetry errors #3777
Nick Craig-Wood684dbe0e9d6a
diff --git a/backend/local/local.go b/backend/local/local.goindex 2b421a434..12e52b31d 100644--- a/backend/local/local.go+++ b/backend/local/local.go@@ -820,10 +820,10 @@ func (file *localOpenFile) Read(p []byte) (n int, err error) {return 0, errors.Wrap(err, "can't read status of source file while transferring")}if file.o.size != fi.Size() {- return 0, errors.Errorf("can't copy - source file is being updated (size changed from %d to %d)", file.o.size, fi.Size())+ return 0, fserrors.NoLowLevelRetryError(errors.Errorf("can't copy - source file is being updated (size changed from %d to %d)", file.o.size, fi.Size()))}if !file.o.modTime.Equal(fi.ModTime()) {- return 0, errors.Errorf("can't copy - source file is being updated (mod time changed from %v to %v)", file.o.modTime, fi.ModTime())+ return 0, fserrors.NoLowLevelRetryError(errors.Errorf("can't copy - source file is being updated (mod time changed from %v to %v)", file.o.modTime, fi.ModTime()))}}