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.

adding DiskType to /dir/status output

chrislub62066d38fcb
diff --git a/weed/topology/volume_layout.go b/weed/topology/volume_layout.go
index f8ea28255a..21f5b72673 100644
--- a/weed/topology/volume_layout.go
+++ b/weed/topology/volume_layout.go
@@ -508,12 +508,14 @@ type VolumeLayoutInfo struct {
TTL string `json:"ttl"`
Writables []needle.VolumeId `json:"writables"`
Collection string `json:"collection"`
+ DiskType string `json:"diskType"`
}
func (vl *VolumeLayout) ToInfo() (info VolumeLayoutInfo) {
info.Replication = vl.rp.String()
info.TTL = vl.ttl.String()
info.Writables = vl.writables
+ info.DiskType = vl.diskType.ReadableString()
//m["locations"] = vl.vid2location
return
}