diff options
| author | chrislu <chris.lu@gmail.com> | 2023-10-12 21:39:11 -0700 |
|---|---|---|
| committer | chrislu <chris.lu@gmail.com> | 2023-10-12 21:39:11 -0700 |
| commit | b62066d38fcbb16f8045b2510dc6ad74649b03a5 (patch) | |
| tree | 929cf80d8512b4cb3917e2fee73c53688977b9a7 /weed/topology/volume_layout.go | |
| parent | deb86ff4a655a9570c9b1fea4906ba4fffbd65d6 (diff) | |
| download | seaweedfs-b62066d38fcbb16f8045b2510dc6ad74649b03a5.tar.xz seaweedfs-b62066d38fcbb16f8045b2510dc6ad74649b03a5.zip | |
adding DiskType to /dir/status output
Diffstat (limited to 'weed/topology/volume_layout.go')
| -rw-r--r-- | weed/topology/volume_layout.go | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/weed/topology/volume_layout.go b/weed/topology/volume_layout.go index f8ea28255..21f5b7267 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 } |
