driver

package
v0.0.0-...-9eadeab Latest Latest
Warning

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

Go to latest
Published: Apr 13, 2023 License: GPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	BlockSize      int64
	WriteChunkSize int64
	Threads        int
	Major          int64
	WriteShmSize   int64
	ReadShmSize    int64
	CollisionArea  int64
	QueueDepth     int64
	Scheduler      bool
	CPUsPerNode    int
	IOMin          int64
	IOOpt          int64

	// Live configurable
	TurnOn       bool
	ReadTimeout  time.Duration
	WriteTimeout time.Duration
}

type Driver

type Driver struct {
	// contains filtered or unexported fields
}

func New

func New(cfg *Config, s *storage.Storage) *Driver

func (*Driver) BusePostRemove

func (d *Driver) BusePostRemove()

func (*Driver) BusePreRun

func (d *Driver) BusePreRun()

func (*Driver) BuseRead

func (d *Driver) BuseRead(sector, length int64, chunk []byte) error

func (*Driver) BuseWrite

func (d *Driver) BuseWrite(extentsCount int64, chunk []byte) error

func (*Driver) Close

func (d *Driver) Close()

func (*Driver) Run

func (d *Driver) Run() error

func (*Driver) UpdateConfig

func (d *Driver) UpdateConfig(cfg *Config)

Jump to

Keyboard shortcuts

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