mirror of
https://github.com/minio/minio.git
synced 2025-11-06 20:33:07 -05:00
server: Fetch StorageInfo() from underlying disks transparently. (#2549)
Fixes #2511
This commit is contained in:
@@ -160,6 +160,12 @@ func checkDiskFree(diskPath string, minFreeDisk int64) (err error) {
|
||||
return nil
|
||||
}
|
||||
|
||||
// DiskInfo provides current information about disk space usage,
|
||||
// total free inodes and underlying filesystem.
|
||||
func (s *posix) DiskInfo() (info disk.Info, err error) {
|
||||
return getDiskInfo(s.diskPath)
|
||||
}
|
||||
|
||||
// getVolDir - will convert incoming volume names to
|
||||
// corresponding valid volume names on the backend in a platform
|
||||
// compatible way for all operating systems. If volume is not found
|
||||
|
||||
Reference in New Issue
Block a user