mkfs

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Nov 12, 2022 License: Apache-2.0 Imports: 8 Imported by: 0

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