erofsutils

package
v2.2.1 Latest Latest
Warning

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

Go to latest
Published: Dec 18, 2025 License: Apache-2.0 Imports: 11 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, uuid string, mkfsExtraOpts []string) error

func GenerateTarIndexAndAppendTar added in v2.2.0

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

GenerateTarIndexAndAppendTar calculates tar index using --tar=i option and appends the original tar content to create a combined EROFS layer.

The `--tar=i` option instructs mkfs.erofs to only generate the tar index for the tar content. The resulting file structure is: [Tar index][Original tar content]

func MountsToLayer

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

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

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

func SupportGenerateFromTar added in v2.2.0

func SupportGenerateFromTar() (bool, error)

SupportGenerateFromTar checks if the installed version of mkfs.erofs supports the tar mode (--tar option).

Types

This section is empty.

Jump to

Keyboard shortcuts

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