devicemapper

package
v0.49.0 Latest Latest
Warning

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

Go to latest
Published: Aug 19, 2026 License: GPL-3.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddDelayTable

func AddDelayTable(readDelay int, writeDelay int) error

func DropCaches

func DropCaches() error

DropCaches clears the Page Cache for direct reading from disk.

func SetupDeviceMapper

func SetupDeviceMapper(t testing.TB) (dmflakey.Flakey, string, func())

func UpdateDeviceMode

func UpdateDeviceMode(flakey dmflakey.Flakey, mode DeviceMode, mountPoint string) (func() error, error)

Types

type DeviceMode

type DeviceMode string
const (
	AllowWrites DeviceMode = "AllowWrites"
	DropWrites  DeviceMode = "DropWrites"
	ErrorWrites DeviceMode = "ErrorWrites"
	FullError   DeviceMode = "FullError"
	ErrorReads  DeviceMode = "ErrorReads"
	SuspendDisk DeviceMode = "SuspendDisk"
)

Jump to

Keyboard shortcuts

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