Categorygithub.com/u-root/iscsinl
modulepackage
0.1.0
Repository: https://github.com/u-root/iscsinl.git
Documentation: pkg.go.dev

# README

iscsinl

CircleCI Go Report Card GoDoc

Go iSCSI netlink library

TODO

Currently, after establishing a successful iscsi session with target, iscsinl scans all LUNS i.e uses wild card - - - while writing to /sys/class/scsi_host/host%d/scan. The three - - - stand for channel, SCSI target ID, and LUN, where - means all.

In future we would like the iscsnl initiator code to accept LUN as an input argument just like initiatorName, so that user can customize which LUN s(he) wants to be scanned.

# Packages

No description provided by the author

# Functions

ConnectNetlink connects to the iscsi netlink socket, and if successful returns an IscsiIpcConn ready to accept commands.
FillNetlink aids attaching binary data to netlink request.
MountIscsi connects to the given iscsi target and mounts it, returning the device name on success.
NewSession constructs an IscsiTargetSession.
ReReadPartitionTable opens the given file and reads partition table from it.
TearDownIscsi tears down the specified session.
WithCmdsMax sets the maximum number of outstanding iSCSI commands.
WithDigests sets both the header and data digest.
WithInitiator adds the initiator name to the config.
WithQueueDepth sets the maximum number of outstanding IOs.
WithScanTimeout sets the timeout to wait for devices to appear after sending the scan event.
WithScheduler sets the block device scheduler.
WithTarget adds the target address and volume to the config.

# Constants

IscsiErr iscsi_if.h:enum iscsi_err.
IscsiErr iscsi_if.h:enum iscsi_err.
IscsiErr iscsi_if.h:enum iscsi_err.
IscsiErr iscsi_if.h:enum iscsi_err.
IscsiErr iscsi_if.h:enum iscsi_err.
IscsiErr iscsi_if.h:enum iscsi_err.
IscsiErr iscsi_if.h:enum iscsi_err.
IscsiErr iscsi_if.h:enum iscsi_err.
IscsiErr iscsi_if.h:enum iscsi_err.
IscsiErr iscsi_if.h:enum iscsi_err.
IscsiErr iscsi_if.h:enum iscsi_err.
IscsiErr iscsi_if.h:enum iscsi_err.
IscsiErr iscsi_if.h:enum iscsi_err.
IscsiErr iscsi_if.h:enum iscsi_err.
IscsiErr iscsi_if.h:enum iscsi_err.
IscsiErr iscsi_if.h:enum iscsi_err.
IscsiErr iscsi_if.h:enum iscsi_err.
IscsiErr iscsi_if.h:enum iscsi_err.
IscsiErr iscsi_if.h:enum iscsi_err.
IscsiErr iscsi_if.h:enum iscsi_err.
IscsiErr iscsi_if.h:enum iscsi_err.
IscsiErr iscsi_if.h:enum iscsi_err.
IscsiErr iscsi_if.h:enum iscsi_err.
Login constants.
Login constants.
Login stages.
IscsiEvents that we use.
IscsiEvents that we use.
IscsiEvents that we use.
IscsiEvents that we use.
IscsiErr iscsi_if.h:enum iscsi_err.
Login constants.
Login constants.
Login constants.
Login stages.
IscsiParams up until INITIATOR_NAME.
IscsiParams up until INITIATOR_NAME.
IscsiParams up until INITIATOR_NAME.
IscsiParams up until INITIATOR_NAME.
IscsiParams up until INITIATOR_NAME.
IscsiParams up until INITIATOR_NAME.
IscsiParams up until INITIATOR_NAME.
IscsiParams up until INITIATOR_NAME.
IscsiParams up until INITIATOR_NAME.
IscsiParams up until INITIATOR_NAME.
IscsiParams up until INITIATOR_NAME.
IscsiParams up until INITIATOR_NAME.
IscsiParams up until INITIATOR_NAME.
IscsiParams up until INITIATOR_NAME.
IscsiParams up until INITIATOR_NAME.
IscsiParams up until INITIATOR_NAME.
IscsiParams up until INITIATOR_NAME.
IscsiParams up until INITIATOR_NAME.
IscsiParams up until INITIATOR_NAME.
IscsiParams up until INITIATOR_NAME.
IscsiParams up until INITIATOR_NAME.
IscsiParams up until INITIATOR_NAME.
IscsiParams up until INITIATOR_NAME.
IscsiParams up until INITIATOR_NAME.
IscsiParams up until INITIATOR_NAME.
IscsiParams up until INITIATOR_NAME.
IscsiParams up until INITIATOR_NAME.
IscsiParams up until INITIATOR_NAME.
IscsiParams up until INITIATOR_NAME.
IscsiParams up until INITIATOR_NAME.
IscsiParams up until INITIATOR_NAME.
IscsiParams up until INITIATOR_NAME.
IscsiParams up until INITIATOR_NAME.
IscsiParams up until INITIATOR_NAME.
IscsiParams up until INITIATOR_NAME.
Login stages.
IscsiEvents that we use.
IscsiEvents that we use.
IscsiEvents that we use.
IscsiEvents that we use.
IscsiEvents that we use.
IscsiEvents that we use.
IscsiEvents that we use.
IscsiEvents that we use.
IscsiEvents that we use.
Login constants.
IscsiEvents that we use.
STOP_CONN_RECOVER - when stopping connection clean up I/O on that connection.
IscsiEvents that we use.

# Structs

IscsiIpcConn is a single netlink connection.
IscsiLoginPdu is an iSCSI Login Request PDU.
IscsiOptions configures iSCSI session.
IscsiTargetSession represents an iSCSI session and a single connection to a target.
LoginHdr is the header for ISCSI_OP_LOGIN See: RFC3720 10.12.
LoginRspHdr is the header for ISCSI_OP_LOGIN_RSP See: RFC3720 10.13.

# Interfaces

PduLike interface for sending PDUs.

# Type aliases

IscsiErr iscsi_if.h:enum iscsi_err.
IscsiEvent iscsi_if.h:enum iscsi_uevent_e.
IscsiLoginStage corresponds to iSCSI login stage.
IscsiParam iscsi_if.h:enum iscsi_param.
Option is a functional API for setting optional configuration.