package
0.6.0-rc5
Repository: https://github.com/threefoldtech/zos.git
Documentation: pkg.go.dev

# Functions

All is default filter.
BindMount remounts an existing directory in a given target using the mount syscall with the BIND flag set.
DefaultDeviceManager returns a default device manager implementation.
FilesUsage return the total size of files under path (recursively) in bytes.
GetMountTarget returns the mount target of a device or false if the device is not mounted.
IsMountPoint checks if a path is a mount point.
IsZDBVolume checks if this is a zdb subvolume.
Migrate is a simple migration routine that makes sure we have fresh disks to use from zos v1, in case you moving away from older version After migration you should alway use the returned Device manager, or create a new one.
NewBtrfs creates a new filesystem that implements btrfs.
NewUtils create a new BtrfsUtil object.
Partprobe runs partprobe.

# Constants

BtrfsFSType btrfs filesystem type.

# Variables

ErrDeviceAlreadyMounted indicates that a mounted device is attempted to be mounted again (without MS_BIND flag).
ErrDeviceNotMounted is returned when an action is performed on a device which requires the device to be mounted, while it is not.

# Structs

Btrfs holds metadata of underlying btrfs filesystem.
BtrfsDevice holds metadata about a single device in a btrfs filesystem.
BtrfsDiskUsage is parsed information form btrfs fi df.
BtrfsQGroup is parsed btrfs qgroup information.
BtrfsUtil utils for btrfs.
BtrfsVolume holds metadata about a single subvolume.
Device represents a physical device.
DiskUsage is parsed information from a btrfs fi df line.
Usage struct.

# Interfaces

DeviceManager is able to list all/specific devices on a system.
Filesystem defines a filesystem interface.
Pool represents a created filesystem.
Volume represents a logical volume in the pool.

# Type aliases

ByReadTime implements sort.Interface for []Device based on the ReadTime field.
DeviceCache represents a list of cached in memory devices.
Filter closure for Filesystem list.
FSType type of filesystem on device.