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
fix FUSE mount on mac
chrislu98b519b11395
diff --git a/weed/filer/reader_at.go b/weed/filer/reader_at.goindex d7617b7401..5c52c8a2f8 100644--- a/weed/filer/reader_at.go+++ b/weed/filer/reader_at.go@@ -173,7 +173,7 @@ func (c *ChunkReadAt) doReadAt(p []byte, offset int64) (n int, ts int64, err err// zero the remaining bytes if a gap exists at the end of the last chunk (or a fully sparse file)if err == nil && remaining > 0 {var delta int64- if c.fileSize > startOffset {+ if c.fileSize >= startOffset {delta = min(remaining, c.fileSize-startOffset)startOffset -= offset} else {@@ -220,6 +220,9 @@ func (c *ChunkReadAt) readChunkSliceAt(buffer []byte, chunkView *ChunkView, next}func zero(buffer []byte, start, length int64) int {+ if length <= 0 {+ return 0+ }end := min(start+length, int64(len(buffer)))start = max(start, 0)