nvmeadm

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 Device

type Device struct {
	Size                uint64
	CurTemp             int16
	WarnTemp            int16
	CritTemp            int16
	SpareSpace          byte
	Used                byte
	SerialNumber        string
	ModelNumber         string
	FirmwareRevision    string
	UnitsRead           uint64
	UnitsWritten        uint64
	ByteRead            uint64
	ByteWritten         uint64
	PowerCycleCount     uint64
	PowerOnHours        uint64
	UnsafeShutdownCount uint64
	MaxNamespaces       uint32
	NamespaceSizes      []uint64
	CritWarnings        []string
	UnrecoveredError    uint64 // Media and Data Integrity Errors
	// contains filtered or unexported fields
}

Device represents NVMe disk

func NewDecoder

func NewDecoder(p string) *Device

NewDecoder creates and initializes a Device as Decoder

func (*Device) Decode

func (d *Device) Decode() error

Decode makes Device satisfy the mox.Decoder interface

func (Device) GetNamespaceSize

func (d Device) GetNamespaceSize(id int) uint64

GetNamespaceSize returns a total bytes of specified namespace

Jump to

Keyboard shortcuts

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