filesystem

package
v3.0.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateEmptyFile

func CreateEmptyFile(fs vfs.FS, filename string, size int64, noSparse bool) error

CreateEmptyFile creates a file of the given size in MiB.

func CreatePreloadedFileSystemImage

func CreatePreloadedFileSystemImage(s *sys.System, root, filename, label string, overheadM int64, fs deployment.FileSystem) error

CreatePreloadedFileSystemImage creates a new raw image with the given filesystem. The size of the image is computed form the provided root tree size plus the given overhead. The resulting image size is aligned with the given overhead and has a minimum of a full overhead of free space.

func CreateSquashFS

func CreateSquashFS(ctx context.Context, s *sys.System, source string, destination string, options []string) error

CreateSquashFS creates a squash file at destination from a source, with options

func DefaultSquashfsCompressionOptions

func DefaultSquashfsCompressionOptions() []string

func SquashfsExcludeOptions

func SquashfsExcludeOptions(excludes ...string) []string

func SquashfsNoCompressionOptions

func SquashfsNoCompressionOptions() []string

Types

type MkfsCall

type MkfsCall struct {
	// contains filtered or unexported fields
}

func NewMkfsCall

func NewMkfsCall(s *sys.System, dev, fileSystem, label, uuid string, customOpts ...string) *MkfsCall

func (MkfsCall) Apply

func (mkfs MkfsCall) Apply() error

Jump to

Keyboard shortcuts

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