ufs

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: May 2, 2023 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewServer

func NewServer(ctx context.Context, root string) p9p.FileSys

Types

type FileRef

type FileRef struct {
	Path string
	Info p9p.Dir
	// contains filtered or unexported fields
}

Internal path invariants:

  • Path always begins with "/".
  • Path does not contain any "\\" characters.
  • Path never contains "." or ".." or "" (empty) elements.

func (*FileRef) Clunk

func (ref *FileRef) Clunk(ctx context.Context) error

func (*FileRef) Create

func (ref *FileRef) Create(ctx context.Context, name string,
	perm uint32, mode p9p.Flag) (p9p.Dirent, p9p.File, error)

func (*FileRef) IOUnit

func (ref *FileRef) IOUnit() int

func (*FileRef) IsDir

func (f *FileRef) IsDir() bool

func (*FileRef) Open

func (ref *FileRef) Open(ctx context.Context,
	mode p9p.Flag) (p9p.File, error)

func (*FileRef) OpenDir

func (ref *FileRef) OpenDir(ctx context.Context) (p9p.ReadNext, error)

func (*FileRef) Qid

func (ref *FileRef) Qid() p9p.Qid

func (*FileRef) Read

func (ref *FileRef) Read(ctx context.Context, p []byte,
	offset int64) (n int, err error)

func (*FileRef) Remove

func (ref *FileRef) Remove(ctx context.Context) error

func (*FileRef) Stat

func (ref *FileRef) Stat(ctx context.Context) (p9p.Dir, error)

func (*FileRef) WStat

func (ref *FileRef) WStat(ctx context.Context, dir p9p.Dir) error

func (*FileRef) Walk

func (ref *FileRef) Walk(ctx context.Context, names ...string) ([]p9p.Qid, p9p.Dirent, error)

func (*FileRef) Write

func (ref *FileRef) Write(ctx context.Context, p []byte,
	offset int64) (n int, err error)

Jump to

Keyboard shortcuts

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