Skip to content

Proposal: mount slice support extra options #6656

@luodw

Description

@luodw

What is the problem you're trying to solve

Nydus is a open source project which provide a new image format and bring lazyload ability to containers. It mainly consist of nydus-snapshotter(remote snapshotter), nydusd(fuse/virtiofs daemon), nydusify(for build image) and so on. Runc and Kata Container both have supported Nydus;

When integrating Kata Container with Nydus, it need to delivery some config information from nydus-snapshotter to kata-shim, but the Mount struct has no suitable field to carry information.

Describe the solution you'd like

I think there are two ways to support this case:

  1. Mount struct adds a new field like ExtraOptions []string, in this way, Containerd does not need to modify;
  2. Append config information(format: extraopton=xxxx) to Mount struct Options field, in this way, Containerd need filter extraoption=xxx option in Mount method.

I would prefer first method, as it is more clear.

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions