mirror of
https://github.com/minio/minio.git
synced 2025-11-22 02:35:30 -05:00
committed by
Dee Koder
parent
f460eceb6d
commit
8d59f35523
@@ -29,13 +29,13 @@ func GetInfo(path string) (info Info, err error) {
|
||||
if err != nil {
|
||||
return Info{}, err
|
||||
}
|
||||
fsReservedBlocks := uint64(s.Bfree) - uint64(s.Bavail)
|
||||
reservedBlocks := uint64(s.Bfree) - uint64(s.Bavail)
|
||||
info = Info{
|
||||
Total: uint64(s.Bsize) * (uint64(s.Blocks) - fsReservedBlocks),
|
||||
Total: uint64(s.Bsize) * (uint64(s.Blocks) - reservedBlocks),
|
||||
Free: uint64(s.Bsize) * uint64(s.Bavail),
|
||||
Files: uint64(s.Files),
|
||||
Ffree: uint64(s.Ffree),
|
||||
FSType: getFSType(s.Fstypename),
|
||||
FSType: getFSType(s.Fstypename[:]),
|
||||
}
|
||||
return info, nil
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user