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 read file-data in entry.content (#4207)
wusong79af6b41d450
diff --git a/weed/mount/filehandle_read.go b/weed/mount/filehandle_read.goindex be6d5d9844..0684d0ba45 100644--- a/weed/mount/filehandle_read.go+++ b/weed/mount/filehandle_read.go@@ -53,7 +53,7 @@ func (fh *FileHandle) readFromChunks(buff []byte, offset int64) (int64, int64, ereturn 0, 0, io.EOF}- if offset+int64(len(buff)) <= int64(len(entry.Content)) {+ if offset < int64(len(entry.Content)) {totalRead := copy(buff, entry.Content[offset:])glog.V(4).Infof("file handle read cached %s [%d,%d] %d", fileFullPath, offset, offset+int64(totalRead), totalRead)return int64(totalRead), 0, nil