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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user