linux

package
v0.0.9 Latest Latest
Warning

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

Go to latest
Published: Apr 7, 2022 License: Apache-2.0 Imports: 23 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrNoPartitionTable = errors.New("no Partition Table Found")

ErrNoPartitionTable is returned if there is no partition table.

Functions

func Ceiling

func Ceiling(val, unit uint64) uint64

Ceiling returns the smallest integer equal to or larger than val that is evenly divisible by unit.

func Floor

func Floor(val, unit uint64) uint64

Floor returns the largest integer equal to or less than val that is evenly divisible by unit.

func GetPartitionKname

func GetPartitionKname(diskName string, num uint) string

GetPartitionKname - get the name of the num partition device on diskName

func GetUdevInfo

func GetUdevInfo(kname string) (disko.UdevInfo, error)

GetUdevInfo return a UdevInfo for the device with kernel name kname.

func System

func System() disko.System

System returns an linux specific implementation of disko.System interface.

func VolumeManager

func VolumeManager() disko.VolumeManager

VolumeManager returns the linux implementation of disko.VolumeManager interface.

Types

This section is empty.

Jump to

Keyboard shortcuts

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