Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func TuneDeviceQueue ¶
func TuneDeviceQueue(bdev BlockDevice) (err error)
Types ¶
type BlockDevice ¶
type BlockDeviceManager ¶
type BlockDeviceManager interface { io.Closer Open(obj storage.AnonymousObject, volumeName uuid.UUID, blockSize int64) (BlockDevice, error) }
func NewTCMUBlockDeviceManager ¶
func NewTCMUBlockDeviceManager(cfg TCMUConfig) (BlockDeviceManager, error)
type TCMUConfig ¶
type TCMUConfig struct { Workers int `help:"Number of goroutines handling SCSI commands" default:"12"` WorkerBufferSize int `help:"Size of the static buffer used by each goroutine" default:"4194304"` DeviceNamespace string `help:"The namespace under /dev where devices are created" default:"vdisc"` HBA int `help:"The SCSI Host Bus Adapter identifier" default:"30"` BlockXferMin uint16 `help:"Advertise minimum blocks to transfer" default:"128"` // 256KB BlockXferMax uint32 `help:"Advertise maximum blocks to transfer" default:"16384"` // 32MB BlockXferOpt uint32 `help:"Advertise optimal block transfer size" default:"2048"` // 4MB }
Click to show internal directories.
Click to hide internal directories.