mirror of
https://github.com/minio/minio.git
synced 2025-11-09 21:49:46 -05:00
Recalculate free minimum disk space (#2788)
* Fix calculating free space disk by using blocks available for unprivileged user * Use fixed minimal free disk space instead of percentage
This commit is contained in:
committed by
Harshavardhana
parent
70d52bbc4c
commit
9417614a8e
@@ -31,7 +31,7 @@ func GetInfo(path string) (info Info, err error) {
|
||||
}
|
||||
info = Info{}
|
||||
info.Total = int64(s.Bsize) * int64(s.Blocks)
|
||||
info.Free = int64(s.Bsize) * int64(s.Bfree)
|
||||
info.Free = int64(s.Bsize) * int64(s.Bavail)
|
||||
info.Files = int64(s.Files)
|
||||
info.Ffree = int64(s.Ffree)
|
||||
info.FSType, err = getFSType(path)
|
||||
|
||||
Reference in New Issue
Block a user