interruptfs

package
v0.0.0-...-83118d4 Latest Latest
Warning

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

Go to latest
Published: Nov 30, 2017 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() (fs *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) (err error)

func (*InterruptFS) GetInodeAttributes

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

func (*InterruptFS) LookUpInode

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

func (*InterruptFS) OpenFile

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

func (*InterruptFS) ReadFile

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

func (*InterruptFS) StatFS

func (fs *InterruptFS) StatFS(
	ctx context.Context,
	op *fuseops.StatFSOp) (err 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