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:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user