Merge pull request #1353 from ronnielai/fsinfo

Including the number of free inodes in FsInfo
This commit is contained in:
Tim St. Clair 2016-06-27 12:06:20 -07:00 committed by GitHub
commit bad9237cf6
2 changed files with 4 additions and 0 deletions

View File

@ -216,6 +216,9 @@ type FsInfo struct {
// Labels associated with this filesystem.
Labels []string `json:"labels"`
// Number of available Inodes.
InodesFree uint64 `json:"inodes_free"`
}
type RequestOptions struct {

View File

@ -687,6 +687,7 @@ func (self *manager) GetFsInfo(label string) ([]v2.FsInfo, error) {
Usage: fs.Usage,
Available: fs.Available,
Labels: labels,
InodesFree: fs.InodesFree,
}
fsInfo = append(fsInfo, fi)
}