storage

package
v0.4.5-rc4 Latest Latest
Warning

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

Go to latest
Published: Oct 29, 2020 License: Apache-2.0 Imports: 19 Imported by: 0

README

Storage

Implementation of the storage module interface

Mountpoints

Every volume which is managed by the storage module is mounted in /mnt. The name of the mountpoint is the label of the volume. For instance, a volume with label volumelabel will be mounted in /mnt/volumelabel. The volumes are mounted when the storage module is started, and remain mounted after that. In case the storae module exits in any way, there is no attempt to unmount any volume.

Since filesystems are created as subvolumes within the "root" volumes, they are always mounted.

Next to the volumes, the storage module also tries to instantiate a cache. It does this by creating a subvolume, preferably in a volume which was created on SSD devices, and then creates a bind mount in the /var directory. The full path of the cache is /var/path.

Documentation

Index

Constants

View Source
const (
	// CacheTarget is the path where the cache disk is mounted
	CacheTarget = "/var/cache"
)
View Source
const ZDBPoolPrefix = "zdb"

ZDBPoolPrefix is the prefix used for the subvolume create for 0-DB containers

Variables

This section is empty.

Functions

func New

func New() (pkg.StorageModule, error)

New create a new storage module service

func NewVDiskModule

func NewVDiskModule(v pkg.VolumeAllocater) (pkg.VDiskModule, error)

NewVDiskModule creates a new disk allocator

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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