Skip to content

Conversation

@WaberZhuang
Copy link
Contributor

What this PR does / why we need it:
Enhance snapshotter.Remove to avoid delete snapshots which hold a mountpoint.

Which issue(s) this PR fixes (optional, in fixes #<issue number>(, fixes #<issue_number>, ...) format, will close the issue(s) when PR gets merged):
Fixes #

Please check the following list:

  • Does the affected code have corresponding tests, e.g. unit test, E2E test?
  • Does this change require a documentation update?
  • Does this introduce breaking changes that would require an announcement or bumping the major version?
  • Do all new files have an appropriate license header?

@WaberZhuang WaberZhuang force-pushed the main branch 3 times, most recently from 27f06a5 to 2c7f96e Compare September 12, 2024 02:35
}

func (o *snapshotter) hasMountpoint(ctx context.Context, id string) (bool, error) {
if out, err := exec.CommandContext(ctx, "/bin/bash", "-c",
Copy link
Member

Choose a reason for hiding this comment

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

create a process to check mount point is so tricky.

@BigVan
Copy link
Member

BigVan commented Sep 12, 2024

LGTM

@BigVan BigVan added the ok-to-test Pull request is ok to run ci test label Sep 12, 2024
@liulanzheng liulanzheng merged commit 360dff9 into containerd:main Sep 12, 2024
11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ok-to-test Pull request is ok to run ci test

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants