SeaweedFS is a distributed storage system for object storage (S3), file systems, Iceberg table buckets, and Lance vector buckets, designed to handle billions of files with O(1) disk access and effortless horizontal scaling.
Go blob-storagecloud-drivedistributed-file-systemdistributed-storageerasure-codingfusehadoop-hdfshdfskuberneteslancelancedbobject-storageposixs3s3-storageseaweedfstiered-file-systemvector-search
[mount]Fix copy file range (#4407)
zemul68f1cc34a587
diff --git a/weed/mount/weedfs_file_copy_range.go b/weed/mount/weedfs_file_copy_range.goindex e3f841b020..49bab17f33 100644--- a/weed/mount/weedfs_file_copy_range.go+++ b/weed/mount/weedfs_file_copy_range.go@@ -46,18 +46,14 @@ func (wfs *WFS) CopyFileRange(cancel <-chan struct{}, in *fuse.CopyFileRangeIn)// lock source and target file handlesfhOut.Lock()defer fhOut.Unlock()- fhOut.entryLock.Lock()- defer fhOut.entryLock.Unlock()if fhOut.entry == nil {return 0, fuse.ENOENT}if fhIn.fh != fhOut.fh {- fhIn.Lock()- defer fhIn.Unlock()- fhIn.entryLock.Lock()- defer fhIn.entryLock.Unlock()+ fhIn.RLock()+ defer fhIn.RUnlock()}// directories are not supported