poolshm

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: 8 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

func (T) Head

func (t T) Head() string

func (*T) Translate

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

Translate returns the configuration of a volume the pool makes, a tmpfs.

Its size is DEFAULT.size, the size the volume is claimed with, by reference: a resize of the volume records the size it reached there, and every later mount reads it, where a size written in mnt_opt kept the one the volume was made with, so the next mount undid every resize.

func (T) Usage

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

Jump to

Keyboard shortcuts

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