diff --git a/info/v2/container.go b/info/v2/container.go index d300c525..42d990ff 100644 --- a/info/v2/container.go +++ b/info/v2/container.go @@ -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 { diff --git a/manager/manager.go b/manager/manager.go index eb9c6098..60bde205 100644 --- a/manager/manager.go +++ b/manager/manager.go @@ -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) }