ufs

package
v0.0.0-...-d30a6d4 Latest Latest
Warning

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

Go to latest
Published: Jul 24, 2020 License: BSD-3-Clause Imports: 13 Imported by: 12

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewUFS

func NewUFS(opts ...protocol.ListenerOpt) (*protocol.Listener, error)

Types

type FileServer

type FileServer struct {
	Versioned bool
	IOunit    protocol.MaxSize
	// contains filtered or unexported fields
}

func (*FileServer) Rattach

func (e *FileServer) Rattach(fid protocol.FID, afid protocol.FID, uname string, aname string) (protocol.QID, error)

func (*FileServer) Rclunk

func (e *FileServer) Rclunk(fid protocol.FID) error

func (*FileServer) Rcreate

func (e *FileServer) Rcreate(fid protocol.FID, name string, perm protocol.Perm, mode protocol.Mode) (protocol.QID, protocol.MaxSize, error)

func (*FileServer) Rflush

func (e *FileServer) Rflush(o protocol.Tag) error

func (*FileServer) Ropen

func (*FileServer) Rread

func (e *FileServer) Rread(fid protocol.FID, o protocol.Offset, c protocol.Count) ([]byte, error)

func (*FileServer) Rremove

func (e *FileServer) Rremove(fid protocol.FID) error

Rremove removes the file. The question of whether the file continues to be accessible is system dependent.

func (*FileServer) Rstat

func (e *FileServer) Rstat(fid protocol.FID) ([]byte, error)

func (*FileServer) Rversion

func (e *FileServer) Rversion(msize protocol.MaxSize, version string) (protocol.MaxSize, string, error)

func (*FileServer) Rwalk

func (e *FileServer) Rwalk(fid protocol.FID, newfid protocol.FID, paths []string) ([]protocol.QID, error)

func (*FileServer) Rwrite

func (e *FileServer) Rwrite(fid protocol.FID, o protocol.Offset, b []byte) (protocol.Count, error)

func (*FileServer) Rwstat

func (e *FileServer) Rwstat(fid protocol.FID, b []byte) error

Jump to

Keyboard shortcuts

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