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
ec.encode: calculate free ec slots based on (maxVolumeCount-volumeCount)
chrislu21aaa4c1f1c8
diff --git a/weed/shell/command_ec_common.go b/weed/shell/command_ec_common.goindex 3ca310b5d7..b3bd0ce5d3 100644--- a/weed/shell/command_ec_common.go+++ b/weed/shell/command_ec_common.go@@ -172,7 +172,7 @@ func countFreeShardSlots(dn *master_pb.DataNodeInfo, diskType types.DiskType) (cif diskInfo == nil {return 0}- return int(diskInfo.MaxVolumeCount-diskInfo.ActiveVolumeCount)*erasure_coding.DataShardsCount - countShards(diskInfo.EcShardInfos)+ return int(diskInfo.MaxVolumeCount-diskInfo.VolumeCount)*erasure_coding.DataShardsCount - countShards(diskInfo.EcShardInfos)}type RackId string