thin_provisioning

package
v0.0.0-...-9913de7 Latest Latest
Warning

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

Go to latest
Published: Dec 13, 2024 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefTimeoutSecs     = 600
	RebuildTimeoutSecs = 120
	DefPoolCommitment  = 2.2
)

Variables

This section is empty.

Functions

func CleanUp

func CleanUp(scName string, volNames []string) error

func CreateAndRunRunningFio

func CreateAndRunRunningFio(sizeMiB int, volName string) *coreV1.Pod

func CreateAndRunSizedFio

func CreateAndRunSizedFio(uuid string, sizeMiB int, volName string, expectError bool)

func CreateSc

func CreateSc(provisioningType common.ProvisioningType, replicaCount int) (string, error)

func CreateVolume

func CreateVolume(scName, volBaseName string, volSizeMb int) (string, string, error)

func GetPoolSizeFraction

func GetPoolSizeFraction(pool common.MayastorPool, percentCapacity float64, unit string) int

returns the percentage of the disk pool in the selected units (1.00 = 100%)

func GetPools

func GetPools() []common.MayastorPool

func GetReplicasUuid

func GetReplicasUuid(replicaTopology common.ReplicaTopology) []string

func GetSizePerUnits

func GetSizePerUnits(b uint64, unit string) float64

Types

This section is empty.

Jump to

Keyboard shortcuts

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