snapshot: ensure tests compile

Signed-off-by: Stephen J Day <stephen.day@docker.com>
This commit is contained in:
Stephen J Day 2016-12-07 19:59:03 -08:00
parent f7850ccd68
commit 65e668a6b8
No known key found for this signature in database
GPG key ID: FB5F6B2905D7ECF3
2 changed files with 10 additions and 4 deletions

View file

@ -139,6 +139,9 @@ func NewManager(root string) (*Manager, error) {
// working directory for any associated activity, such as running a container
// or importing a layer.
//
// The implementation may choose to write data directly to dst, opting to
// return no mounts instead.
//
// Once the writes have completed, Manager.Commit or
// Manager.Rollback should be called on dst.
func (lm *Manager) Prepare(dst, parent string) ([]containerd.Mount, error) {
@ -171,6 +174,7 @@ func (lm *Manager) Prepare(dst, parent string) ([]containerd.Mount, error) {
return nil, err
}
// TODO(stevvooe): Write this metadata to disk to make it useful.
lm.active[dst] = activeLayer{
parent: parent,
upperdir: upperdir,