Skip to content

Erofs as mount #12307

@stepancheg

Description

@stepancheg

Description

Containers need to work with some data mounted into /workdir.

This data can be downloaded on the server for example as targz and unpacked and bind-mounted. While downloading is often lightning fast, unpacking targz files is not so fast for example when filesystem is ext4, and targz contains a lot of small files.

It would be convenient if it would be possible to convert data to erofs and mount erofs blobs without unpacking.

This configuration

        {
            "destination": "/workdir",
            "type": "erofs",
            "source": "/downloads/files.erofs"
        },

results in warning

W1114 15:23:00.952578       1 vfs.go:992] ignoring unknown filesystem type "erofs"

Coming from there:

log.Warningf("ignoring unknown filesystem type %q", m.mount.Type)

This code looks like it is not too hard to allow erofs there?

Is this feature related to a specific bug?

No.

Do you have a specific solution in mind?

Allow "erofs" as mount type.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions