mirror of
https://github.com/minio/minio.git
synced 2026-11-13 14:44:19 +00: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:
1 parent
8a9ff2b331
commit
403f4b9c84
3 files changed
+91
-32
No files matched your search
@@ -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