Documentation ¶
Index ¶
- Constants
- func NewUFS(opts ...protocol.ServerOpt) (*protocol.Server, error)
- func OModeToUnixFlags(mode protocol.Mode) int
- type File
- type FileServer
- func (e *FileServer) Rattach(fid protocol.FID, afid protocol.FID, uname string, aname string) (protocol.QID, error)
- func (e *FileServer) Rclunk(fid protocol.FID) error
- func (e *FileServer) Rcreate(fid protocol.FID, name string, perm protocol.Perm, mode protocol.Mode) (protocol.QID, protocol.MaxSize, error)
- func (e *FileServer) Rflush(o protocol.Tag) error
- func (e *FileServer) Ropen(fid protocol.FID, mode protocol.Mode) (protocol.QID, protocol.MaxSize, error)
- func (e *FileServer) Rread(fid protocol.FID, o protocol.Offset, c protocol.Count) ([]byte, error)
- func (e *FileServer) Rremove(fid protocol.FID) error
- func (e *FileServer) Rstat(fid protocol.FID) ([]byte, error)
- func (e *FileServer) Rversion(msize protocol.MaxSize, version string) (protocol.MaxSize, string, error)
- func (e *FileServer) Rwalk(fid protocol.FID, newfid protocol.FID, paths []string) ([]protocol.QID, error)
- func (e *FileServer) Rwrite(fid protocol.FID, o protocol.Offset, b []byte) (protocol.Count, error)
- func (e *FileServer) Rwstat(fid protocol.FID, b []byte) error
- type ServerOpt
Constants ¶
View Source
const (
SeekStart = 0
)
Variables ¶
This section is empty.
Functions ¶
func OModeToUnixFlags ¶
Types ¶
type FileServer ¶
type FileServer struct { Versioned bool Files map[protocol.FID]*File IOunit protocol.MaxSize // contains filtered or unexported fields }
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.
Click to show internal directories.
Click to hide internal directories.