Allow drivers to implement ApplyDiff in Differ interface

This commit is contained in:
Michael Crosby
2013-11-11 19:09:57 -08:00
parent 2c7f50a77d
commit 5d9723002b
15 changed files with 159 additions and 53 deletions
+1 -10
View File
@@ -2,7 +2,6 @@ package devmapper
import (
"fmt"
"github.com/dotcloud/docker/archive"
"github.com/dotcloud/docker/graphdriver"
"os"
"path"
@@ -57,18 +56,10 @@ func (d *Driver) Get(id string) (string, error) {
return mp, nil
}
func (d *Driver) DiffSize(id string) (int64, error) {
func (d *Driver) Size(id string) (int64, error) {
return -1, fmt.Errorf("Not implemented")
}
func (d *Driver) Diff(id string) (archive.Archive, error) {
return nil, fmt.Errorf("Not implemented)")
}
func (d *Driver) Changes(id string) ([]archive.Change, error) {
return nil, fmt.Errorf("asdlfj)")
}
func (d *Driver) mount(id, mp string) error {
// Create the target directories if they don't exist
if err := os.MkdirAll(mp, 0755); err != nil && !os.IsExist(err) {