testdisk

package
v0.244.0 Latest Latest
Warning

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

Go to latest
Published: Feb 19, 2026 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	KiB = datasizes.KiB
	MiB = datasizes.MiB
	GiB = datasizes.GiB
)
View Source
const FakePartitionSize = datasizes.Size(789 * MiB)

Variables

This section is empty.

Functions

func MakeFakeBtrfsPartitionTable added in v0.40.2

func MakeFakeBtrfsPartitionTable(mntPoints ...string) *disk.PartitionTable

MakeFakeBtrfsPartitionTable is similar to MakeFakePartitionTable but creates a btrfs-based partition table. Including a "swap" entry creates a swap partition.

func MakeFakeLVMPartitionTable added in v0.40.2

func MakeFakeLVMPartitionTable(mntPoints ...string) *disk.PartitionTable

MakeFakeLVMPartitionTable is similar to MakeFakePartitionTable but creates a lvm-based partition table. Including a "swap" entry creates a swap logical volume.

func MakeFakePartitionTable

func MakeFakePartitionTable(mntPoints ...string) *disk.PartitionTable

MakeFakePartitionTable is a helper to create partition table structs for tests. It uses sensible defaults for common scenarios. Including a "swap" entry creates a swap partition.

func TestPartitionTables added in v0.40.2

func TestPartitionTables() map[string]disk.PartitionTable

Types

This section is empty.

Jump to

Keyboard shortcuts

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