mirror of
https://github.com/minio/minio.git
synced 2025-11-20 18:06:10 -05:00
Improve disk code to return back disk StatFS{} structure
```
StatFS {
Total int64
Free int64
FSType string
}
```
Provides more information in a cross platform way.
This commit is contained in:
11
pkg/disk/disk.go
Normal file
11
pkg/disk/disk.go
Normal file
@@ -0,0 +1,11 @@
|
||||
package disk
|
||||
|
||||
// StatFS stat fs struct is container which holds following values
|
||||
// Total - total size of the volume / disk
|
||||
// Free - free size of the volume / disk
|
||||
// FSType - file system type string
|
||||
type StatFS struct {
|
||||
Total int64
|
||||
Free int64
|
||||
FSType string
|
||||
}
|
||||
Reference in New Issue
Block a user