Skip to content

pkg/system: make EnsureRemoveAll unix-specific#41478

Merged
cpuguy83 merged 1 commit intomoby:masterfrom
kolyshkin:ensure-rm-all-win
Sep 21, 2020
Merged

pkg/system: make EnsureRemoveAll unix-specific#41478
cpuguy83 merged 1 commit intomoby:masterfrom
kolyshkin:ensure-rm-all-win

Conversation

@kolyshkin
Copy link
Copy Markdown
Contributor

The tricks performed by EnsureRemoveAll only make sense for Linux and
other Unices, so separate it out, and make EnsureRemoveAll for Windows
just an alias of os.RemoveAll.

This makes sure RecursiveUnmount is not called on Windows.

Related to: #41458

The tricks performed by EnsureRemoveAll only make sense for Linux and
other Unices, so separate it out, and make EnsureRemoveAll for Windows
just an alias of os.RemoveAll.

This makes sure RecursiveUnmount is not called on Windows.

Signed-off-by: Kir Kolyshkin <[email protected]>
Copy link
Copy Markdown
Member

@cpuguy83 cpuguy83 left a comment

Choose a reason for hiding this comment

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

LGTM

@cpuguy83 cpuguy83 merged commit a24a71c into moby:master Sep 21, 2020
@thaJeztah thaJeztah added the kind/refactor PR's that refactor, or clean-up code label Sep 24, 2020
@thaJeztah thaJeztah added this to the 20.03.0 milestone Sep 24, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

kind/refactor PR's that refactor, or clean-up code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants