mirror of
https://github.com/minio/minio.git
synced 2025-11-07 21:02:58 -05:00
Improve disk usage calculation (#12376)
- for single pool setups usage is not checked. - for pools, only check the "set" in which it would be placed. - keep a minimum number of inodes (when we know it). - ignore for `.minio.sys`.
This commit is contained in:
@@ -107,6 +107,12 @@ const (
|
||||
|
||||
// diskFillFraction is the fraction of a disk we allow to be filled.
|
||||
diskFillFraction = 0.95
|
||||
|
||||
// diskAssumeUnknownSize is the size to assume when an unknown size upload is requested.
|
||||
diskAssumeUnknownSize = 1 << 30
|
||||
|
||||
// diskMinInodes is the minimum number of inodes we want free on a disk to perform writes.
|
||||
diskMinInodes = 1000
|
||||
)
|
||||
|
||||
var globalCLIContext = struct {
|
||||
|
||||
Reference in New Issue
Block a user