mkfs

package
v0.0.0-...-bc60ea4 Latest Latest
Warning

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

Go to latest
Published: Dec 20, 2024 License: GPL-3.0 Imports: 7 Imported by: 6

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Make

func Make(typ, img, label string, deviceSize, sectorSize quantity.Size) error

Make creates a filesystem of given type and provided label in the device or file. The device size and sector size provides hints for additional tuning of the created filesystem.

func MakeWithContent

func MakeWithContent(typ, img, label, contentRootDir string, deviceSize, sectorSize quantity.Size) error

MakeWithContent creates a filesystem of given type and provided label in the device or file. The filesystem is populated with contents of contentRootDir. The device size provides hints for additional tuning of the created filesystem.

Types

type MakeFunc

type MakeFunc func(imgFile, label, contentsRootDir string, deviceSize, sectorSize quantity.Size) error

MakeFunc defines a function signature that is used by all of the mkfs.<filesystem> functions supported in this package. This is done to allow them to be defined in the mkfsHandlers map

Jump to

Keyboard shortcuts

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