Discover Packages
github.com/joyent/libiscsi-go
package
module
Version:
v0.0.0-...-1c0e8ed
Opens a new window with list of versions in this module.
Published: Aug 11, 2026
License: MIT
Opens a new window with license information.
Imports: 16
Opens a new window with list of imports.
Imported by: ? modules, 0 packages
The first number is the count of modules that contain a package that imports this one.
The module count is a better indicator of popularity than the package count.
A module with 100 importing packages is counted only once instead of 100 times,
reflecting the fact that the choice to use the package was likely made only once,
not 100 times.
A '?' means that the value hasn't been computed yet.
Opens a new window with list of known importers.
README
README
¶
Ideas
Completely fill a volume with random data
write marker values to each lba of a volume
io.Reader/io.Writer backed by iscsi
how does the block limit affect this? write would have to write a partially empty block and be able to keep track of where to resume writing.
TODO
build a binary cross-platform for linux
Expand ▾
Collapse ▴
Documentation
¶
ErrDeviceClosed indicates that an operation cannot be performed because
the device has been closed.
Creates a new ISCSI device with the given connection details
Note that an ISCSI device is not safe to use from multiple
goroutines
func Reader(dev *device) (*reader, error )
Reader implements io.Reader, io.ReaderAt, io.Closer, and io.Seeker for
an underlying ISCSI device. The device must be already connected.
func Writer(dev *device) (*writer, error )
Writer implements io.Writer, io.WriterAt, io.Closer, and io.Seeker for
an underlying ISCSI device. The device must be already connected.
type Capacity struct {
MaxLBA int
BlockSize int
}
type ConnectionDetails struct {
InitiatorIQN string
TargetURL string
}
type Read16 struct {
LBA int
Blocks int
BlockSize int
}
type Task struct {
Status int
DataIn []byte
}
Don't want to expose C structs to callers and can't
embed C structs in a Go struct so we need getters
type Write16 struct {
LBA int
Data []byte
BlockSize int
}
Source Files
¶
Directories
¶
cmd
Click to show internal directories.
Click to hide internal directories.