From 29ffb3b6b9d7bd365e48387dc3b39249963a3b4b Mon Sep 17 00:00:00 2001 From: Ron Lai Date: Fri, 24 Jun 2016 13:08:38 -0700 Subject: [PATCH] Adding inode info --- info/v2/container.go | 3 +++ manager/manager.go | 1 + 2 files changed, 4 insertions(+) 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) }