Skip to content

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.

Save disk space metrics immediately (#4740)

Nikita Mochalov4b1ba7f5b240
diff --git a/weed/storage/disk_location.go b/weed/storage/disk_location.go
index aa3f35eac6..b7fa82197a 100644
--- a/weed/storage/disk_location.go
+++ b/weed/storage/disk_location.go
@@ -83,6 +83,7 @@ func NewDiskLocation(dir string, maxVolumeCount int32, minFreeSpace util.MinFree
location.ecVolumes = make(map[needle.VolumeId]*erasure_coding.EcVolume)
location.closeCh = make(chan struct{})
go func() {
+ location.CheckDiskSpace()
for {
select {
case <-location.closeCh: