mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2024-01-19 02:48:24 +00:00
adding DiskType to /dir/status output
This commit is contained in:
parent
deb86ff4a6
commit
b62066d38f
|
@ -508,12 +508,14 @@ type VolumeLayoutInfo struct {
|
||||||
TTL string `json:"ttl"`
|
TTL string `json:"ttl"`
|
||||||
Writables []needle.VolumeId `json:"writables"`
|
Writables []needle.VolumeId `json:"writables"`
|
||||||
Collection string `json:"collection"`
|
Collection string `json:"collection"`
|
||||||
|
DiskType string `json:"diskType"`
|
||||||
}
|
}
|
||||||
|
|
||||||
func (vl *VolumeLayout) ToInfo() (info VolumeLayoutInfo) {
|
func (vl *VolumeLayout) ToInfo() (info VolumeLayoutInfo) {
|
||||||
info.Replication = vl.rp.String()
|
info.Replication = vl.rp.String()
|
||||||
info.TTL = vl.ttl.String()
|
info.TTL = vl.ttl.String()
|
||||||
info.Writables = vl.writables
|
info.Writables = vl.writables
|
||||||
|
info.DiskType = vl.diskType.ReadableString()
|
||||||
//m["locations"] = vl.vid2location
|
//m["locations"] = vl.vid2location
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue