package
module
Version:
v0.0.0-...-285938f
Opens a new window with list of versions in this module.
Published: Sep 8, 2025
License: MIT
Opens a new window with license information.
Imports: 17
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
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
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.