Documentation
¶
Index ¶
- func NewPooler() pool.Pooler
- type T
- func (t *T) BlkTranslate(name string, size int64, shared bool) ([]string, error)
- func (t T) Capabilities() pool.Capabilities
- func (t T) Head() string
- func (t T) ThinPool() string
- func (t *T) Translate(name string, size int64, shared bool) ([]string, error)
- func (t T) Usage(ctx context.Context) (pool.Usage, error)
- func (t T) VGName() string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type T ¶
func (*T) BlkTranslate ¶
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 ¶
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 ¶
ThinPool is the thin pool of the volume group the volumes are made in, empty for thick volumes.