mount

package
v1.8.2 Latest Latest
Warning

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

Go to latest
Published: Oct 28, 2024 License: MPL-2.0 Imports: 6 Imported by: 0

Documentation

Overview

Package mount provides bootloader mount operations.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PartitionOp

func PartitionOp(
	disk string, specs []Spec, opFunc func() error,
	probeOptions []blkid.ProbeOption,
	newPointOptions []mount.NewPointOption,
	mountOptions []mount.OperationOption,
	info *blkid.Info,
) error

PartitionOp mounts specified partitions with the specified label, executes the operation func, and unmounts the partition(s).

Types

type NotFoundTag added in v1.8.0

type NotFoundTag struct{}

NotFoundTag is a tag for a partition not found/mismatch errors.

type Spec added in v1.8.0

type Spec struct {
	PartitionLabel string

	FilesystemType string

	MountTarget string
}

Spec specifies what has to be mounted.

Jump to

Keyboard shortcuts

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