Documentation ¶
Index ¶
Constants ¶
const ( StatusNoPoolsAvailable = "no pools available" ZpoolStatusDegraded = "DEGRADED" ZpoolStatusFaulted = "FAULTED" ZpoolStatusOffline = "OFFLINE" ZpoolStatusOnline = "ONLINE" ZpoolStatusRemoved = "REMOVED" )
PoolOperator is the name of the tool that makes pool-related operations.
Variables ¶
var CStorZpools map[string]zpool.Topology
CStorZpools is a map of imported cstor pools config at backend identified via their UID
var ImportedCStorPools map[string]*cstor.CStorPoolInstance
ImportedCStorPools is a map of imported cstor pools API config identified via their UID
var PoolAddEventHandled = false
PoolAddEventHandled is a flag representing if the pool has been initially imported or created
var RunnerVar util.Runner
RunnerVar the runner variable for executing binaries.
Functions ¶
func CheckForZreplInitial ¶
CheckForZreplInitial is blocking call for checking status of zrepl in cstor-pool container.
func GetDevPathIfNotSlashDev ¶
GetDevPathIfNotSlashDev gets the path from given deviceID if its not prefix to "/dev"
func GetPoolName ¶
GetPoolName return the pool already created.
Types ¶
type ImportOptions ¶
type ImportOptions struct { // CachefileFlag option to use cachefile for import CachefileFlag bool // DevPath is directory where pool devices resides DevPath string // contains filtered or unexported fields }
ImportOptions contains the options to build import command
type PoolNamePrefix ¶
type PoolNamePrefix string
PoolNamePrefix is a typed string to store pool name prefix
const (
PoolPrefix PoolNamePrefix = "cstor-"
)
PoolPrefix is prefix for pool name