mirror of
https://github.com/minio/minio.git
synced 2025-03-13 05:00: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
@ -975,8 +975,11 @@ func getOfflineDisks(offlineHost string, endpoints EndpointServerPools) []madmin
|
||||
for _, ep := range pool.Endpoints {
|
||||
if offlineHost == "" && ep.IsLocal || offlineHost == ep.Host {
|
||||
offlineDisks = append(offlineDisks, madmin.Disk{
|
||||
Endpoint: ep.String(),
|
||||
State: string(madmin.ItemOffline),
|
||||
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