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
chunk rememober encryption or not
Chris Lud57559d3f7c0
diff --git a/weed/filer2/filer_notify_append.go b/weed/filer2/filer_notify_append.goindex 6671cd9097..efe7b02134 100644--- a/weed/filer2/filer_notify_append.go+++ b/weed/filer2/filer_notify_append.go@@ -44,6 +44,7 @@ func (f *Filer) appendToFile(targetFile string, data []byte) error {Size: uint64(uploadResult.Size),Mtime: time.Now().UnixNano(),ETag: uploadResult.ETag,+ CipherKey: uploadResult.CipherKey,IsGzipped: uploadResult.Gzip > 0,}entry.Chunks = append(entry.Chunks, chunk)diff --git a/weed/s3api/filer_multipart.go b/weed/s3api/filer_multipart.goindex 85ed99854b..64a7331d90 100644--- a/weed/s3api/filer_multipart.go+++ b/weed/s3api/filer_multipart.go@@ -69,11 +69,12 @@ func (s3a *S3ApiServer) completeMultipartUpload(input *s3.CompleteMultipartUploaif strings.HasSuffix(entry.Name, ".part") && !entry.IsDirectory {for _, chunk := range entry.Chunks {p := &filer_pb.FileChunk{- FileId: chunk.GetFileIdString(),- Offset: offset,- Size: chunk.Size,- Mtime: chunk.Mtime,- ETag: chunk.ETag,+ FileId: chunk.GetFileIdString(),+ Offset: offset,+ Size: chunk.Size,+ Mtime: chunk.Mtime,+ CipherKey: chunk.CipherKey,+ ETag: chunk.ETag,}finalParts = append(finalParts, p)offset += int64(chunk.Size)