interruptfs

package
v0.0.0-...-4a6429e Latest Latest
Warning

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

Go to latest
Published: Feb 24, 2022 License: Apache-2.0, BSD-2-Clause, BSD-3-Clause, + 1 more Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type InterruptFS

type InterruptFS struct {
	fuseutil.NotImplementedFileSystem
	// contains filtered or unexported fields
}

A file system containing exactly one file, named "foo". ReadFile and FlushFile ops can be made to hang until interrupted. Exposes a method for synchronizing with the arrival of a read or a flush.

Must be created with New.

func New

func New() *InterruptFS

func (*InterruptFS) EnableFlushBlocking

func (fs *InterruptFS) EnableFlushBlocking()

Enable blocking until interrupted for the next (and subsequent) flush ops.

func (*InterruptFS) EnableReadBlocking

func (fs *InterruptFS) EnableReadBlocking()

Enable blocking until interrupted for the next (and subsequent) read ops.

func (*InterruptFS) FlushFile

func (fs *InterruptFS) FlushFile(
	ctx context.Context,
	op *fuseops.FlushFileOp) error

func (*InterruptFS) GetInodeAttributes

func (fs *InterruptFS) GetInodeAttributes(
	ctx context.Context,
	op *fuseops.GetInodeAttributesOp) error

func (*InterruptFS) LookUpInode

func (fs *InterruptFS) LookUpInode(
	ctx context.Context,
	op *fuseops.LookUpInodeOp) error

func (*InterruptFS) OpenFile

func (fs *InterruptFS) OpenFile(
	ctx context.Context,
	op *fuseops.OpenFileOp) error

func (*InterruptFS) ReadFile

func (fs *InterruptFS) ReadFile(
	ctx context.Context,
	op *fuseops.ReadFileOp) error

func (*InterruptFS) StatFS

func (fs *InterruptFS) StatFS(
	ctx context.Context,
	op *fuseops.StatFSOp) error

func (*InterruptFS) WaitForFirstFlush

func (fs *InterruptFS) WaitForFirstFlush()

Block until the first flush is received.

func (*InterruptFS) WaitForFirstRead

func (fs *InterruptFS) WaitForFirstRead()

Block until the first read is received.

Jump to

Keyboard shortcuts

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