Remove Differ and Changer interfaces

Add the methods to the Driver interface
to force the drivers to implement the methods
Upstream-commit: 4d1a537433ede2bbc75b0a4817e8121f9e03fd86
Component: engine
This commit is contained in:
Michael Crosby
2013-11-11 12:10:53 -08:00
parent 675c173a12
commit 86d455035f
6 changed files with 30 additions and 57 deletions
+6 -3
View File
@@ -1479,10 +1479,13 @@ func validateID(id string) error {
// GetSize, return real size, virtual size
func (container *Container) GetSize() (int64, int64) {
var sizeRw, sizeRootfs int64
var (
sizeRw, sizeRootfs int64
err error
driver = container.runtime.driver
)
driver := container.runtime.driver
sizeRw, err := driver.DiffSize(container.ID)
sizeRw, err = driver.DiffSize(container.ID)
if err != nil {
utils.Errorf("Warning: driver %s couldn't return diff size of container %s: %s", driver, container.ID, err)
// FIXME: GetSize should return an error. Not changing it now in case