snapshot: ensure tests compile
Signed-off-by: Stephen J Day <stephen.day@docker.com>
This commit is contained in:
parent
f7850ccd68
commit
65e668a6b8
2 changed files with 10 additions and 4 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue