poolshare

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: 10 Imported by: 0 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

Overview

Package poolshare is the pool of the volumes in a directory every node mounts from the same server, as a nfs export: the share pool of v2.

A volume is a directory of the share, or a loop file there for a block volume. A directory has no size of its own, and the project quota of the directory pool does not reach through nfs, so the pool bounds no volume and has no quota capability: a namespace claiming it is refused the volumes it asks of it, as of any pool not bounding them.

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 v2: every access mode, block volumes, and shared, the share being the same on every node.

func (T) Head

func (t T) Head() string

func (*T) Translate

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

Translate makes the volume a directory of the share. A volume shared by the nodes has its directory shared: one node provisions and unprovisions it, the others leaving alone what another node uses.

func (T) Usage

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

Usage is the one of the filesystem of the share. A path on a local filesystem, the share not mounted on the node, has none: the usage of the filesystem holding the mount point would have the pool serve volumes the other nodes do not see.

Jump to

Keyboard shortcuts

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