Skip to content

ocibundle: confusing Create / Prepare function naming #2303

@dtrudg

Description

@dtrudg

Type of issue

technical debt

Description of issue

In #2302 the tools.CreateOverlayTmpfs that creates a tmpfs, and overlay mounts it onto a rootfs, was refactored so that it calls a new tools.PrepareOverlayTmpfs which only creates the tmpfs.

The naming of these functions is confusing, but is limited by the fact that they are in the public API under pkg/

We could perhaps envisage a 3-way split of the functionality

  • tools.PrepareOverlayTmpfs
  • tools.MountOverlayTmpfs
  • tools.PrepareAndMountOverlayTmpfs

(or similar), where tools.CreateOverlayTmpfs can then be made a deprecated alias of tools.PrepareAndMountOverlayTmpfs.

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