Add 'Available' to storage API.

This commit is contained in:
Rohit Jnagal 2015-05-12 06:56:45 +00:00
parent d61a381e84
commit 828da56a01
2 changed files with 4 additions and 0 deletions

View File

@ -151,6 +151,9 @@ type FsInfo struct {
// Filesystem usage in bytes.
Capacity uint64 `json:"capacity"`
// Bytes available for non-root use.
Available uint64 `json:"available"`
// Number of bytes used on this filesystem.
Usage uint64 `json:"usage"`

View File

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