Skip to content

Commit

Permalink
Adding inode info
Browse files Browse the repository at this point in the history
  • Loading branch information
ronnielai committed Jun 27, 2016
1 parent dbff294 commit 29ffb3b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
3 changes: 3 additions & 0 deletions info/v2/container.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
1 change: 1 addition & 0 deletions manager/manager.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
Expand Down

0 comments on commit 29ffb3b

Please sign in to comment.