file

package
v1.6.1 Latest Latest
Warning

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

Go to latest
Published: Mar 28, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New() types.BackendFactory

Types

type Factory

type Factory struct {
}

func (*Factory) Create

func (ff *Factory) Create(volumeName, address string, dataServerProtocol types.DataServerProtocol, engineToReplicaTimeout time.Duration) (types.Backend, error)

type Wrapper

type Wrapper struct {
	*os.File
	types.UnmapperAt
}

func (*Wrapper) Close

func (f *Wrapper) Close() error

func (*Wrapper) Expand

func (f *Wrapper) Expand(size int64) (err error)

func (*Wrapper) GetHeadFileSize added in v1.1.0

func (f *Wrapper) GetHeadFileSize() (int64, error)

GetHeadFileSize uses dummy head file size for file backend

func (*Wrapper) GetLastModifyTime added in v1.1.0

func (f *Wrapper) GetLastModifyTime() (int64, error)

func (*Wrapper) GetMonitorChannel

func (f *Wrapper) GetMonitorChannel() types.MonitorChannel

func (*Wrapper) GetRevisionCounter

func (f *Wrapper) GetRevisionCounter() (int64, error)

func (*Wrapper) GetSnapshotCountAndSizeUsage added in v1.6.0

func (f *Wrapper) GetSnapshotCountAndSizeUsage() (int, int64, error)

func (*Wrapper) GetState added in v1.2.5

func (f *Wrapper) GetState() (string, error)

func (*Wrapper) GetUnmapMarkSnapChainRemoved added in v1.4.0

func (f *Wrapper) GetUnmapMarkSnapChainRemoved() (bool, error)

func (*Wrapper) IsRevisionCounterDisabled added in v1.1.0

func (f *Wrapper) IsRevisionCounterDisabled() (bool, error)

func (*Wrapper) PingResponse

func (f *Wrapper) PingResponse() error

func (*Wrapper) ResetRebuild added in v1.4.4

func (f *Wrapper) ResetRebuild() error

func (*Wrapper) SectorSize

func (f *Wrapper) SectorSize() (int64, error)

func (*Wrapper) SetRevisionCounter

func (f *Wrapper) SetRevisionCounter(counter int64) error

func (*Wrapper) SetSnapshotMaxCount added in v1.6.0

func (f *Wrapper) SetSnapshotMaxCount(count int) error

func (*Wrapper) SetSnapshotMaxSize added in v1.6.0

func (f *Wrapper) SetSnapshotMaxSize(size int64) error

func (*Wrapper) SetUnmapMarkSnapChainRemoved added in v1.4.0

func (f *Wrapper) SetUnmapMarkSnapChainRemoved(enabled bool) error

func (*Wrapper) Size

func (f *Wrapper) Size() (int64, error)

func (*Wrapper) Snapshot

func (f *Wrapper) Snapshot(name string, userCreated bool, created string, labels map[string]string) error

func (*Wrapper) StopMonitoring

func (f *Wrapper) StopMonitoring()

func (*Wrapper) UnmapAt added in v1.4.0

func (f *Wrapper) UnmapAt(length uint32, off int64) (int, error)

Jump to

Keyboard shortcuts

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