remote

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Jul 14, 2020 License: Apache-2.0 Imports: 4 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Size uint64
)

Functions

func NewRemoteBackingStore

func NewRemoteBackingStore() (api.BackingStore, error)

Types

type RemBackingStore

type RemBackingStore struct {
	scsi.BaseBackingStore
	// Remote backing store, remote server exposing
	// read and write methods.
	RemBs api.RemoteBackingStore
}

RemBackingStore

func (*RemBackingStore) Close

func (bs *RemBackingStore) Close(dev *api.SCSILu) error

func (*RemBackingStore) DataAdvise

func (bs *RemBackingStore) DataAdvise(offset, length int64, advise uint32) error

func (*RemBackingStore) DataSync

func (bs *RemBackingStore) DataSync(offset, length int64) (err error)

func (*RemBackingStore) Exit

func (bs *RemBackingStore) Exit(dev *api.SCSILu) error

func (*RemBackingStore) Init

func (bs *RemBackingStore) Init(dev *api.SCSILu, Opts string) error

func (*RemBackingStore) Open

func (bs *RemBackingStore) Open(dev *api.SCSILu, path string) error

func (*RemBackingStore) Read

func (bs *RemBackingStore) Read(offset, tl int64) ([]byte, error)

func (*RemBackingStore) Size

func (bs *RemBackingStore) Size(dev *api.SCSILu) uint64

func (*RemBackingStore) Unmap

func (bs *RemBackingStore) Unmap(bd []api.UnmapBlockDescriptor) (err error)

func (*RemBackingStore) Write

func (bs *RemBackingStore) Write(wbuf []byte, offset int64) error

Jump to

Keyboard shortcuts

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