Skip to content

Mount management: allow custom mount points #12679

@weiwei02

Description

@weiwei02

What is the problem you're trying to solve

Since containerd before version 2.2 did not manage any mounts, there are numerous standalone mount operations in my custom snapshotter, resulting in chaotic management. I observed that mount management provides a unified lifecycle management for mounts and would like to leverage this design to optimize the management logic of my snapshotter.

Currently, mount management only supports specifying mount points through plugin configuration, which is not flexible enough. I hope to be able to specify mount points before call to Activate() .

#11303

Describe the solution you'd like

Add a new WithMountPoint option that allows users to specify
a custom mount point when activating mounts. When specified, the mount
manager will use the provided mount point instead of generating an
automatic one.

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Status

    Todo

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions