pk_scst

package module
v0.0.0-...-6d67ec5 Latest Latest
Warning

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

Go to latest
Published: Oct 7, 2022 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const SCST_DEVICES string = SCST_ROOT_PATH + "/devices"
View Source
const SCST_ISCSI_TARGETS string = SCST_ROOT_PATH + "/targets/iscsi"
View Source
const SCST_ROOT_PATH string = "/sys/kernel/scst_tgt"
View Source
const SYSFS_SCST_DEV_MGMT string = SCST_ROOT_PATH + "/handlers/vdisk_blockio/mgmt"
View Source
const SYSFS_SCST_LUN0_DEV string = "ini_groups/allowed_ini/luns/0/device"
View Source
const SYSFS_SCST_LUNS_MGMT string = "/ini_groups/allowed_ini/luns/mgmt"

Variables

This section is empty.

Functions

func ReadFromDir

func ReadFromDir(dirpath string) ([]string, error)

func ScstActivateDevice

func ScstActivateDevice(device string) (err error)

func ScstCreateLun

func ScstCreateLun(devId string, fileName string) (err error)

func ScstDeactivateDevice

func ScstDeactivateDevice(device string) (err error)

func ScstDeleteDevice

func ScstDeleteDevice(device string) (err error)

func ScstFindWwn

func ScstFindWwn(tgtId string) (res string, err error)

func ScstGetDeviceParam

func ScstGetDeviceParam(device string, param string) string

func ScstGetDeviceParams

func ScstGetDeviceParams(device string) (res map[string]string, err error)

func ScstGetDevices

func ScstGetDevices() ([]string, error)

func ScstGetIscsiTargetParam

func ScstGetIscsiTargetParam(wwn string, param string) (res string, err error)

func ScstGetIscsiTargetParams

func ScstGetIscsiTargetParams(target string) (res map[string]string, err error)

func ScstGetIscsiTargetSessions

func ScstGetIscsiTargetSessions(target string) (sessions []string)

func ScstGetIscsiTargets

func ScstGetIscsiTargets() (res []string, err error)

func ScstListIscsiSessions

func ScstListIscsiSessions(target string) (res []string, err error)

Types

type ScstBlockDevice

type ScstBlockDevice struct {
	Name     string
	Filename string
}

func ScstGetLunDevice

func ScstGetLunDevice(target string, lun int) (device ScstBlockDevice, err error)

Jump to

Keyboard shortcuts

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