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

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