util

package
v0.4.7 Latest Latest
Warning

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

Go to latest
Published: Nov 23, 2023 License: MPL-2.0 Imports: 4 Imported by: 1

Documentation

Overview

Package util provides helper utilities for parsing blockdevice and partition paths.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DevnameFromPartname

func DevnameFromPartname(partname string) (string, error)

DevnameFromPartname returns the device name from a partition name.

func PartName

func PartName(d string, n int) string

PartName returns a valid partition name given a device and parition number.

func PartNo

func PartNo(partname string) (string, error)

PartNo returns the partition number.

func PartPath

func PartPath(d string, n int) (string, error)

PartPath returns the canonical path to a partition name (e.g. /dev/sda).

func PartPathEncrypted

func PartPathEncrypted(partitionName string) string

PartPathEncrypted gets encrypted partition path which is mounted into /dev/mapper.

Types

This section is empty.

Directories

Path Synopsis
Package disk provides utility method for disk listing and searching using /sys/block data.
Package disk provides utility method for disk listing and searching using /sys/block data.

Jump to

Keyboard shortcuts

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