Versions in this module Expand all Collapse all v0 v0.0.1 Mar 1, 2020 Changes in this version + const EIO + const ENOENT + const ENOSYS + const EPERM + const ESTALE + const Version + var Debugf = nop + func AppendDirent(data []byte, dir Dirent) []byte + func HandleRead(req *ReadRequest, resp *ReadResponse, data []byte) + type AccessRequest struct + Mask uint32 + func (r *AccessRequest) Respond() + func (r *AccessRequest) String() string + type Attr struct + Atime time.Time + Blocks uint64 + Crtime time.Time + Ctime time.Time + Flags uint32 + Gid uint32 + Inode uint64 + Mode os.FileMode + Mtime time.Time + Nlink uint32 + Rdev uint32 + Size uint64 + Uid uint32 + type Conn struct + func Mount(dir string) (*Conn, error) + func (c *Conn) ReadRequest() (Request, error) + func (c *Conn) Serve(fs FS) error + type CreateRequest struct + Flags uint32 + Mode os.FileMode + Name string + func (r *CreateRequest) Respond(resp *CreateResponse) + func (r *CreateRequest) String() string + type CreateResponse struct + func (r *CreateResponse) String() string + type DestroyRequest struct + func (r *DestroyRequest) Respond() + func (r *DestroyRequest) String() string + type Dirent struct + Inode uint64 + Name string + Type uint32 + type Errno syscall.Errno + func (e Errno) String() string + type Error interface + type FS interface + Root func() (Node, Error) + type FlushRequest struct + Flags uint32 + Handle HandleID + LockOwner uint64 + func (r *FlushRequest) Respond() + func (r *FlushRequest) String() string + type ForgetRequest struct + N uint64 + func (r *ForgetRequest) Respond() + func (r *ForgetRequest) String() string + type FsyncRequest struct + Flags uint32 + Handle HandleID + func (r *FsyncRequest) Respond() + func (r *FsyncRequest) String() string + type GetattrRequest struct + func (r *GetattrRequest) Respond(resp *GetattrResponse) + func (r *GetattrRequest) String() string + type GetattrResponse struct + Attr Attr + AttrValid time.Duration + func (r *GetattrResponse) String() string + type GetxattrRequest struct + Position uint32 + Size uint32 + func (r *GetxattrRequest) Respond(resp *GetxattrResponse) + func (r *GetxattrRequest) String() string + type GetxattrResponse struct + Xattr []byte + func (r *GetxattrResponse) String() string + type Handle interface + func DataHandle(data []byte) Handle + type HandleID uint64 + type Header struct + Conn *Conn + Gid uint32 + ID RequestID + Node NodeID + Pid uint32 + Uid uint32 + func (h *Header) Hdr() *Header + func (h *Header) RespondError(err Error) + func (h *Header) String() string + type InitFlags uint32 + const InitAsyncRead + const InitCaseSensitive + const InitPosixLocks + const InitVolRename + const InitXtimes + func (fl InitFlags) String() string + type InitRequest struct + Flags InitFlags + Major uint32 + MaxReadahead uint32 + Minor uint32 + func (r *InitRequest) Respond(resp *InitResponse) + func (r *InitRequest) String() string + type InitResponse struct + Flags InitFlags + MaxReadahead uint32 + MaxWrite uint32 + func (r *InitResponse) String() string + type Intr chan struct + func (Intr) String() string + type LinkRequest struct + NewName string + OldNode NodeID + func (r *LinkRequest) Respond(resp *LookupResponse) + type ListxattrRequest struct + Position uint32 + Size uint32 + func (r *ListxattrRequest) Respond(resp *ListxattrResponse) + func (r *ListxattrRequest) String() string + type ListxattrResponse struct + Xattr []byte + func (r *ListxattrResponse) String() string + type LookupRequest struct + Name string + func (r *LookupRequest) Respond(resp *LookupResponse) + func (r *LookupRequest) String() string + type LookupResponse struct + Attr Attr + AttrValid time.Duration + EntryValid time.Duration + Generation uint64 + Node NodeID + func (r *LookupResponse) String() string + type MkdirRequest struct + Mode os.FileMode + Name string + func (r *MkdirRequest) Respond(resp *MkdirResponse) + func (r *MkdirRequest) String() string + type MkdirResponse struct + func (r *MkdirResponse) String() string + type MknodRequest struct + Mode os.FileMode + Name string + Rdev uint32 + func (r *MknodRequest) Respond(resp *LookupResponse) + func (r *MknodRequest) String() string + type Node interface + Attr func() Attr + type NodeID uint64 + const RootID + type OpenFlags uint32 + const OpenDirectIO + const OpenKeepCache + const OpenNonSeekable + const OpenPurgeAttr + const OpenPurgeUBC + func (fl OpenFlags) String() string + type OpenRequest struct + Dir bool + Flags uint32 + Mode os.FileMode + func (r *OpenRequest) Respond(resp *OpenResponse) + func (r *OpenRequest) String() string + type OpenResponse struct + Flags OpenFlags + Handle HandleID + func (r *OpenResponse) String() string + type ReadRequest struct + Dir bool + Handle HandleID + Offset int64 + Size int + func (r *ReadRequest) Respond(resp *ReadResponse) + func (r *ReadRequest) String() string + type ReadResponse struct + Data []byte + func (r *ReadResponse) String() string + type ReadlinkRequest struct + func (r *ReadlinkRequest) Respond(target string) + func (r *ReadlinkRequest) String() string + type ReleaseFlags uint32 + const ReleaseFlush + func (fl ReleaseFlags) String() string + type ReleaseRequest struct + Dir bool + Flags uint32 + Handle HandleID + LockOwner uint32 + ReleaseFlags ReleaseFlags + func (r *ReleaseRequest) Respond() + func (r *ReleaseRequest) String() string + type RemoveRequest struct + Dir bool + Name string + func (r *RemoveRequest) Respond() + func (r *RemoveRequest) String() string + type RemovexattrRequest struct + Name string + func (r *RemovexattrRequest) Respond() + func (r *RemovexattrRequest) String() string + type RenameRequest struct + NewDir NodeID + NewName string + OldName string + func (r *RenameRequest) Respond() + func (r *RenameRequest) String() string + type Request interface + Hdr func() *Header + RespondError func(Error) + String func() string + type RequestID uint64 + type SetattrRequest struct + Atime time.Time + Bkuptime time.Time + Chgtime time.Time + Crtime time.Time + Flags uint32 + Gid uint32 + Handle HandleID + Mode os.FileMode + Mtime time.Time + Size uint64 + Uid uint32 + Valid SetattrValid + func (r *SetattrRequest) Respond(resp *SetattrResponse) + func (r *SetattrRequest) String() string + type SetattrResponse struct + Attr Attr + AttrValid time.Duration + func (r *SetattrResponse) String() string + type SetattrValid uint32 + const SetattrAtime + const SetattrAtimeNow + const SetattrBkuptime + const SetattrChgtime + const SetattrCrtime + const SetattrFlags + const SetattrGid + const SetattrHandle + const SetattrLockOwner + const SetattrMode + const SetattrMtime + const SetattrMtimeNow + const SetattrSize + const SetattrUid + func (fl SetattrValid) Atime() bool + func (fl SetattrValid) Bkuptime() bool + func (fl SetattrValid) Chgtime() bool + func (fl SetattrValid) Crtime() bool + func (fl SetattrValid) Flags() bool + func (fl SetattrValid) Gid() bool + func (fl SetattrValid) Handle() bool + func (fl SetattrValid) Mode() bool + func (fl SetattrValid) Mtime() bool + func (fl SetattrValid) Size() bool + func (fl SetattrValid) String() string + func (fl SetattrValid) Uid() bool + type SetxattrRequest struct + Flags uint32 + Name string + Position uint32 + Xattr []byte + func (r *SetxattrRequest) Respond() + func (r *SetxattrRequest) String() string + type StatfsRequest struct + func (r *StatfsRequest) Respond(resp *StatfsResponse) + func (r *StatfsRequest) String() string + type StatfsResponse struct + Bavail uint64 + Bfree uint64 + Blocks uint64 + Bsize uint32 + Ffree uint64 + Files uint64 + Frsize uint32 + Namelen uint32 + func (r *StatfsResponse) String() string + type SymlinkRequest struct + NewName string + Target string + func (r *SymlinkRequest) Respond(resp *SymlinkResponse) + func (r *SymlinkRequest) String() string + type SymlinkResponse struct + type Tree struct + func (t *Tree) Add(path string, node Node) + func (t *Tree) Attr() Attr + func (t *Tree) Lookup(name string, intr Intr) (Node, Error) + func (t *Tree) ReadDir(intr Intr) ([]Dirent, Error) + func (t *Tree) Root() (Node, Error) + type WriteFlags uint32 + func (fl WriteFlags) String() string + type WriteRequest struct + Data []byte + Flags WriteFlags + Handle HandleID + Offset int64 + func (r *WriteRequest) Respond(resp *WriteResponse) + func (r *WriteRequest) String() string + type WriteResponse struct + Size int + func (r *WriteResponse) String() string