Adding inode info

This commit is contained in:
Ron Lai 2016-06-24 13:08:38 -07:00
parent dbff294be6
commit 29ffb3b6b9
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)
}