mirror of
https://github.com/cubefs/cubefs.git
synced 2026-08-02 02:00:56 +00:00
fix(master): Modify the display information of lostDisk status. #1000409772
Signed-off-by: zhumingze <zhumingze@oppo.com>
This commit is contained in:
parent
694d52120c
commit
f384d50b27
@ -7851,11 +7851,15 @@ func (m *Server) queryDisks(w http.ResponseWriter, r *http.Request) {
|
||||
}
|
||||
|
||||
for _, ds := range dataNode.DiskStats {
|
||||
status := proto.DiskStatusMap[ds.Status]
|
||||
if contains(dataNode.LostDisks, ds.DiskPath) {
|
||||
status = proto.DiskStatusMap[proto.Unavailable]
|
||||
}
|
||||
info := proto.DiskInfo{
|
||||
NodeId: dataNode.ID,
|
||||
Address: dataNode.Addr,
|
||||
Path: ds.DiskPath,
|
||||
Status: proto.DiskStatusMap[ds.Status],
|
||||
Status: status,
|
||||
TotalPartitionCnt: ds.TotalPartitionCnt,
|
||||
DiskErrPartitionList: ds.DiskErrPartitionList,
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user