mirror of
https://github.com/minio/minio.git
synced 2025-11-21 18:26:04 -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.F_bfree) - uint64(s.F_bavail)
|
||||
reservedBlocks := uint64(s.F_bfree) - uint64(s.F_bavail)
|
||||
info = Info{
|
||||
Total: uint64(s.F_bsize) * (uint64(s.F_blocks) - fsReservedBlocks),
|
||||
Total: uint64(s.F_bsize) * (uint64(s.F_blocks) - reservedBlocks),
|
||||
Free: uint64(s.F_bsize) * uint64(s.F_bavail),
|
||||
Files: uint64(s.F_files),
|
||||
Ffree: uint64(s.F_ffree),
|
||||
FSType: getFSType(s.F_fstypename),
|
||||
FSType: getFSType(s.F_fstypename[:]),
|
||||
}
|
||||
return info, nil
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user