Skip to content

Conversation

@jterry75
Copy link
Owner

@jterry75 jterry75 commented Oct 1, 2019

  1. Resolves an issue with using a custom snapshot location if the new location
    is on another drive the final os.Rename fails. Instead we now copy to the new
    location with its final name in one step.
  2. Resolves an issue with using a custom snapshot location where if a parent
    layer path had a custom snapshot location the parentLayerPaths array would be
    incorrect.
  3. Resolves an issue with using a custom snapshot location on removal we would
    leak the sandbox.vhdx at the custom location.

Signed-off-by: Justin Terry (VM) juterry@microsoft.com

@jterry75
Copy link
Owner Author

jterry75 commented Oct 1, 2019

@kevpar, @katiewasnothere - Still testing but please review.

1. Resolves an issue with using a custom snapshot location if the new location
is on another drive the final os.Rename fails. Instead we now copy to the new
location with its final name in one step.
2. Resolves an issue with using a custom snapshot location where if a parent
layer path had a custom snapshot location the parentLayerPaths array would be
incorrect.
3. Resolves an issue with using a custom snapshot location on removal we would
leak the sandbox.vhdx at the custom location.

Signed-off-by: Justin Terry (VM) <juterry@microsoft.com>

if loc, ok := snapshotInfo.Labels[rootfsLocLabel]; ok {
if s, err := os.Stat(loc); err != nil || !s.IsDir() {
return nil, errors.Wrapf(err, "invalid %q override: %q, bust be an existing directory", rootfsLocLabel, loc)

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

small typo "bust"

Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lol :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants