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:
Harshavardhana
2015-10-17 19:09:43 -07:00
parent 4b3961e1df
commit a8a935f5fd
8 changed files with 116 additions and 59 deletions

11
pkg/disk/disk.go Normal file
View 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
}