mirror of
https://github.com/minio/minio.git
synced 2025-11-09 21:49:46 -05:00
Remove minimum inodes reqd check (#4747)
This commit is contained in:
@@ -19,12 +19,14 @@ package disk
|
||||
// Info stat fs struct is container which holds following values
|
||||
// Total - total size of the volume / disk
|
||||
// Free - free size of the volume / disk
|
||||
// Type - file system type string
|
||||
// Files - total inodes available
|
||||
// Ffree - free inodes available
|
||||
// FSType - file system type
|
||||
type Info struct {
|
||||
Total int64
|
||||
Free int64
|
||||
Files int64
|
||||
Ffree int64
|
||||
Total uint64
|
||||
Free uint64
|
||||
Files uint64
|
||||
Ffree uint64
|
||||
FSType string
|
||||
}
|
||||
|
||||
|
||||
@@ -30,10 +30,10 @@ func GetInfo(path string) (info Info, err error) {
|
||||
return Info{}, err
|
||||
}
|
||||
info = Info{}
|
||||
info.Total = int64(s.Bsize) * int64(s.Blocks)
|
||||
info.Free = int64(s.Bsize) * int64(s.Bavail)
|
||||
info.Files = int64(s.Files)
|
||||
info.Ffree = int64(s.Ffree)
|
||||
info.Total = uint64(s.Bsize) * uint64(s.Blocks)
|
||||
info.Free = uint64(s.Bsize) * uint64(s.Bavail)
|
||||
info.Files = uint64(s.Files)
|
||||
info.Ffree = uint64(s.Ffree)
|
||||
info.FSType = getFSType(s.Fstypename)
|
||||
return info, nil
|
||||
}
|
||||
|
||||
@@ -30,10 +30,10 @@ func GetInfo(path string) (info Info, err error) {
|
||||
return Info{}, err
|
||||
}
|
||||
info = Info{}
|
||||
info.Total = int64(s.Bsize) * int64(s.Blocks)
|
||||
info.Free = int64(s.Bsize) * int64(s.Bavail)
|
||||
info.Files = int64(s.Files)
|
||||
info.Ffree = int64(s.Ffree)
|
||||
info.Total = uint64(s.Bsize) * uint64(s.Blocks)
|
||||
info.Free = uint64(s.Bsize) * uint64(s.Bavail)
|
||||
info.Files = uint64(s.Files)
|
||||
info.Ffree = uint64(s.Ffree)
|
||||
info.FSType = getFSType(int64(s.Type))
|
||||
return info, nil
|
||||
}
|
||||
|
||||
@@ -30,10 +30,10 @@ func GetInfo(path string) (info Info, err error) {
|
||||
return Info{}, err
|
||||
}
|
||||
info = Info{}
|
||||
info.Total = int64(s.F_bsize) * int64(s.F_blocks)
|
||||
info.Free = int64(s.F_bsize) * int64(s.F_bavail)
|
||||
info.Files = int64(s.F_files)
|
||||
info.Ffree = int64(s.F_ffree)
|
||||
info.Total = uint64(s.F_bsize) * uint64(s.F_blocks)
|
||||
info.Free = uint64(s.F_bsize) * uint64(s.F_bavail)
|
||||
info.Files = uint64(s.F_files)
|
||||
info.Ffree = uint64(s.F_ffree)
|
||||
info.FSType = getFSType(s.F_fstypename)
|
||||
return info, nil
|
||||
}
|
||||
|
||||
@@ -64,8 +64,8 @@ func GetInfo(path string) (info Info, err error) {
|
||||
uintptr(unsafe.Pointer(&lpTotalNumberOfBytes)),
|
||||
uintptr(unsafe.Pointer(&lpTotalNumberOfFreeBytes)))
|
||||
info = Info{}
|
||||
info.Total = int64(lpTotalNumberOfBytes)
|
||||
info.Free = int64(lpFreeBytesAvailable)
|
||||
info.Total = uint64(lpTotalNumberOfBytes)
|
||||
info.Free = uint64(lpFreeBytesAvailable)
|
||||
info.FSType = getFSType(path)
|
||||
|
||||
// Return values of GetDiskFreeSpace()
|
||||
@@ -88,8 +88,8 @@ func GetInfo(path string) (info Info, err error) {
|
||||
uintptr(unsafe.Pointer(&lpNumberOfFreeClusters)),
|
||||
uintptr(unsafe.Pointer(&lpTotalNumberOfClusters)))
|
||||
|
||||
info.Files = int64(lpTotalNumberOfClusters)
|
||||
info.Ffree = int64(lpNumberOfFreeClusters)
|
||||
info.Files = uint64(lpTotalNumberOfClusters)
|
||||
info.Ffree = uint64(lpNumberOfFreeClusters)
|
||||
|
||||
return info, nil
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user