erofsutils

package
v0.0.0-...-1873eae Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 11, 2025 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConvertErofs

func ConvertErofs(ctx context.Context, layerPath string, srcDir string, mkfsExtraOpts []string) error

func ConvertTarErofs

func ConvertTarErofs(ctx context.Context, r io.Reader, layerPath string, mkfsExtraOpts []string) error

func MountsToLayer

func MountsToLayer(mounts []mount.Mount) (string, error)

MountsToLayer returns the snapshot layer directory in order to generate EROFS-formatted blobs;

If mount[0].Type is `bind` or `erofs`, it just tries the source dir; Or if mount[0].Type is `overlayfs`, it tries the parent of the upperdir;

The candidate will be checked with ".erofslayer" to make sure this active snapshot is really generated by the EROFS snapshotter instead of others.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL