mirror of
https://github.com/pgsty/minio.git
synced 2026-07-22 05:30:24 +03:00
Better reporting of total/free usable capacity of the cluster (#15230)
The current code uses approximation using a ratio. The approximation can skew if we have multiple pools with different disk capacities. Replace the algorithm with a simpler one which counts data disks and ignore parity disks.
This commit is contained in:
@@ -184,6 +184,10 @@ func (es *erasureSingle) Shutdown(ctx context.Context) error {
|
||||
return nil
|
||||
}
|
||||
|
||||
func (es *erasureSingle) SetDriveCounts() []int {
|
||||
return []int{1}
|
||||
}
|
||||
|
||||
func (es *erasureSingle) BackendInfo() (b madmin.BackendInfo) {
|
||||
b.Type = madmin.Erasure
|
||||
|
||||
|
||||
Reference in New Issue
Block a user