types

package
v0.0.0-...-eabe34a Latest Latest
Warning

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

Go to latest
Published: Jan 16, 2025 License: Apache-2.0 Imports: 3 Imported by: 3

Documentation

Index

Constants

View Source
const (
	NQNPrefix = "nqn.2023-01.io.longhorn.spdk"

	DefaultJSONServerNetwork    = "unix"
	DefaultUnixDomainSocketPath = "/var/tmp/spdk.sock"

	LocalIP = "127.0.0.1"

	MiB = 1 << 20

	FrontendSPDKTCPNvmf     = "spdk-tcp-nvmf"
	FrontendSPDKTCPBlockdev = "spdk-tcp-blockdev"

	ShallowCopyStateInProgress = "in progress"
	ShallowCopyStateComplete   = "complete"
	ShallowCopyStateError      = "error"

	ExecuteTimeout = 60 * time.Second
)
View Source
const (
	ErrorMessageCannotFindValidNvmeDevice = "cannot find a valid NVMe device"
	ErrorMessageDeviceOrResourceBusy      = "device or resource busy"
)
View Source
const (
	DefaultCtrlrLossTimeoutSec = 15
	// DefaultReconnectDelaySec can't be more than DefaultFastIOFailTimeoutSec.
	DefaultReconnectDelaySec    = 2
	DefaultFastIOFailTimeoutSec = 10

	// DefaultTransportAckTimeout value is not the timeout second.
	// The timeout formula is 2^(transport_ack_timeout) msec.
	// DefaultTransportAckTimeout is set to 10, so the default timeout is 2^10 = 1024 msec = 1.024 sec.
	// By default, error detection on a qpair is very slow for TCP transports. For fast error
	// detection, transport_ack_timeout should be set.
	DefaultTransportAckTimeout = 10

	DefaultKeepAliveTimeoutMs = 10000
	DefaultMultipath          = "disable"
)

Variables

This section is empty.

Functions

func ErrorIsDeviceOrResourceBusy

func ErrorIsDeviceOrResourceBusy(err error) bool

func ErrorIsValidNvmeDeviceNotFound

func ErrorIsValidNvmeDeviceNotFound(err error) bool

func GetNQN

func GetNQN(name string) string

Types

type DiskStatus

type DiskStatus struct {
	Bdf          string
	Type         string
	Driver       string
	Vendor       string
	Numa         string
	Device       string
	BlockDevices string
}

Jump to

Keyboard shortcuts

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