"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
fuse: add missing locking on filehandle read #823 #802
Nick Craig-Wood87107413f5c8
diff --git a/cmd/mount/read.go b/cmd/mount/read.goindex 3fd4f0128..53befdfb5 100644--- a/cmd/mount/read.go+++ b/cmd/mount/read.go@@ -69,6 +69,8 @@ func (fh *ReadFileHandle) seek(offset int64) error {// Read from the file handlefunc (fh *ReadFileHandle) Read(ctx context.Context, req *fuse.ReadRequest, resp *fuse.ReadResponse) error {+ fh.mu.Lock()+ defer fh.mu.Unlock()fs.Debug(fh.o, "ReadFileHandle.Read size %d offset %d", req.Size, req.Offset)if fh.closed {fs.ErrorLog(fh.o, "ReadFileHandle.Read error: %v", errClosedFileHandle)