Implement fallback operation for driver.Diff()

This moves the Diff() operation to a separate Differ interface and
implements a fallback that uses the Changes() results to encode
a diff tar.
Upstream-commit: e82f8c1661f3fa18e4dc6ca3aebe4dcc46e8961b
Component: engine
This commit is contained in:
Alexander Larsson
2013-11-11 17:46:07 +01:00
parent 7c76e102e9
commit 122fd6b9c2
5 changed files with 38 additions and 15 deletions
-5
View File
@@ -2,7 +2,6 @@ package devmapper
import (
"fmt"
"github.com/dotcloud/docker/archive"
"github.com/dotcloud/docker/graphdriver"
"os"
"path"
@@ -57,10 +56,6 @@ func (d *Driver) Get(id string) (string, error) {
return mp, nil
}
func (d *Driver) Diff(id string) (archive.Archive, error) {
return nil, fmt.Errorf("Not implemented")
}
func (d *Driver) DiffSize(id string) (int64, error) {
return -1, fmt.Errorf("Not implemented")
}