Merge pull request #21683 from mYmNeo/growFS

call growFS when size is a mismatch
This commit is contained in:
Brian Goff 2016-04-21 12:02:44 -04:00
commit b006f7f640
1 changed files with 1 additions and 1 deletions

View File

@ -1880,7 +1880,7 @@ func (devices *DeviceSet) AddDevice(hash, baseHash string, storageOpt map[string
}
// Grow the container rootfs.
if size > 0 {
if size > baseInfo.Size {
info, err := devices.lookupDevice(hash)
if err != nil {
return err