Add 'Available' to storage API.
This commit is contained in:
parent
d61a381e84
commit
828da56a01
@ -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"`
|
||||
|
||||
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user