raid

package
v0.0.0-...-20aa718 Latest Latest
Warning

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

Go to latest
Published: Aug 5, 2021 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Expander

type Expander struct {
	Path         string
	VirtualDisks []*VirtualDisk
}

Expander represents an expander card (raid card)

func NewDecoder

func NewDecoder(path string) *Expander

NewDecoder creates and initializes an Expander

func (*Expander) Decode

func (e *Expander) Decode() error

Decode searches connected disks

type VirtualDisk

type VirtualDisk struct {
	blk.CommonSpec
	blk.SCSIAddress
	Name         string
	Path         string
	Driver       string
	SASAddress   string // eg. 0x5003048009282600
	WWN          string
	SerialNumber string
}

VirtualDisk represents a raid volume if a disk is configured as a pass-through mode it will have sas_address sas_address will used to bind a disk into topology decoded from raidcli outputs

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳