poolvg

package
v3.0.0-rc67 Latest Latest
Warning

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

Go to latest
Published: Nov 15, 2026 License: Apache-2.0 Imports: 7 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewPooler

func NewPooler() pool.Pooler

Types

type T

type T struct {
	pool.T
}

func New

func New() *T

func (*T) BlkTranslate

func (t *T) BlkTranslate(name string, size int64, shared bool) ([]string, error)

func (T) Capabilities

func (t T) Capabilities() pool.Capabilities

Capabilities are the ones of a pool of logical volumes. A pool of thin volumes snapshots them, in their thin pool. A thick volume could be snapshotted too, but with a size of its own, which slows down its writes while the snapshot lives: that is not a capability to select a pool on.

func (T) Head

func (t T) Head() string

Head is the volume group, or the thin pool in it the volumes are thin volumes of, named as the volumes say what they take from.

func (T) ThinPool

func (t T) ThinPool() string

ThinPool is the thin pool of the volume group the volumes are made in, empty for thick volumes.

func (*T) Translate

func (t *T) Translate(name string, size int64, shared bool) ([]string, error)

func (T) Usage

func (t T) Usage(ctx context.Context) (pool.Usage, error)

Usage is the one of the volume group, or of the thin pool the volumes are made in: its size, and the share of its data written to.

func (T) VGName

func (t T) VGName() string

Jump to

Keyboard shortcuts

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