Skip to content

daemon/snapshotter: Align mounter implementations#46769

Merged
vvoland merged 1 commit intomoby:masterfrom
vvoland:c8d-shared-mounter-impl
Nov 3, 2023
Merged

daemon/snapshotter: Align mounter implementations#46769
vvoland merged 1 commit intomoby:masterfrom
vvoland:c8d-shared-mounter-impl

Conversation

@vvoland
Copy link
Copy Markdown
Contributor

@vvoland vvoland commented Nov 3, 2023

- What I did
Change the non-refcounted implementation to perform the mount using the same identity and access right. They should be the same regardless if we're refcounting or not.

This also allows to refactor refCountMounter into a mounter decorator.

- How I did it

- How to verify it

- Description for the changelog

- A picture of a cute animal (not mandatory but encouraged)

@vvoland vvoland added area/runtime Runtime status/2-code-review kind/refactor PR's that refactor, or clean-up code containerd-integration Issues and PRs related to containerd integration labels Nov 3, 2023
@vvoland vvoland force-pushed the c8d-shared-mounter-impl branch from 17d0219 to fd233ee Compare November 3, 2023 13:13
@vvoland vvoland self-assigned this Nov 3, 2023
Copy link
Copy Markdown
Member

@thaJeztah thaJeztah left a comment

Choose a reason for hiding this comment

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

LGTM; left one suggestion; let me know if you want to update before merge

Change the non-refcounted implementation to perform the mount using the
same identity and access right. They should be the same regardless if
we're refcounting or not.

This also allows to refactor refCountMounter into a mounter decorator.

Signed-off-by: Paweł Gronowski <pawel.gronowski@docker.com>
@vvoland vvoland force-pushed the c8d-shared-mounter-impl branch from fd233ee to 26f6360 Compare November 3, 2023 17:13
@vvoland vvoland merged commit 3cb8e95 into moby:master Nov 3, 2023
@thaJeztah thaJeztah added this to the 25.0.0 milestone Dec 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/runtime Runtime containerd-integration Issues and PRs related to containerd integration kind/refactor PR's that refactor, or clean-up code status/4-merge

Projects

Development

Successfully merging this pull request may close these issues.

3 participants