Introduce the Windows lcow diff/snaphotter

Implements the Windows lcow differ/snapshotter responsible for managing
the creation and lifetime of lcow containers on Windows.

Signed-off-by: Justin Terry (VM) <juterry@microsoft.com>
This commit is contained in:
Justin Terry (VM)
2018-08-13 08:14:30 -07:00
parent ce243288e2
commit 0110b3c0bc
14 changed files with 751 additions and 13 deletions

View File

@@ -206,7 +206,7 @@ func (s *snapshotter) Remove(ctx context.Context, key string) error {
path := s.getSnapshotDir(id)
renamedID := "rm-" + id
renamed := filepath.Join(s.root, "snapshots", "rm-"+id)
renamed := filepath.Join(s.root, "snapshots", renamedID)
if err := os.Rename(path, renamed); err != nil && !os.IsNotExist(err) {
return err
}