mirror of
https://github.com/minio/minio.git
synced 2025-03-12 20:50:11 -04:00
info: Populate pool/set/disk indexes for offline disks (#18613)
This can be calculated from the disk layout and some external applications would like to know the location of the offline disks.
This commit is contained in:
parent
b50d90183e
commit
aed7a1818a
@ -977,6 +977,9 @@ func getOfflineDisks(offlineHost string, endpoints EndpointServerPools) []madmin
|
||||
offlineDisks = append(offlineDisks, madmin.Disk{
|
||||
Endpoint: ep.String(),
|
||||
State: string(madmin.ItemOffline),
|
||||
PoolIndex: ep.PoolIdx,
|
||||
SetIndex: ep.SetIdx,
|
||||
DiskIndex: ep.DiskIdx,
|
||||
})
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user