Documentation ¶
Index ¶
- Constants
- func Error2FuseSysError(err error) syscall.Errno
- type File
- func (f *File) Flush(ctx context.Context) syscall.Errno
- func (f *File) Fsync(ctx context.Context, flags uint32) syscall.Errno
- func (f *File) Read(ctx context.Context, dest []byte, off int64) (fuse.ReadResult, syscall.Errno)
- func (f *File) Release(ctx context.Context) syscall.Errno
- func (f *File) Write(ctx context.Context, data []byte, off int64) (written uint32, errno syscall.Errno)
- type NanaFS
- type NanaNode
- func (n *NanaNode) Access(ctx context.Context, mask uint32) syscall.Errno
- func (n *NanaNode) Create(ctx context.Context, name string, flags uint32, mode uint32, ...) (*fs.Inode, fs.FileHandle, uint32, syscall.Errno)
- func (n *NanaNode) GetChild(ctx context.Context, name string) (*types.Object, error)
- func (n *NanaNode) Getattr(ctx context.Context, f fs.FileHandle, out *fuse.AttrOut) syscall.Errno
- func (n *NanaNode) Getxattr(ctx context.Context, attr string, dest []byte) (uint32, syscall.Errno)
- func (n *NanaNode) Link(ctx context.Context, target fs.InodeEmbedder, name string, out *fuse.EntryOut) (*fs.Inode, syscall.Errno)
- func (n *NanaNode) Lookup(ctx context.Context, name string, out *fuse.EntryOut) (*fs.Inode, syscall.Errno)
- func (n *NanaNode) Mkdir(ctx context.Context, name string, mode uint32, out *fuse.EntryOut) (*fs.Inode, syscall.Errno)
- func (n *NanaNode) Mknod(ctx context.Context, name string, mode uint32, dev uint32, out *fuse.EntryOut) (*fs.Inode, syscall.Errno)
- func (n *NanaNode) OnAdd(ctx context.Context)
- func (n *NanaNode) Open(ctx context.Context, flags uint32) (fh fs.FileHandle, fuseFlags uint32, errno syscall.Errno)
- func (n *NanaNode) Opendir(ctx context.Context) syscall.Errno
- func (n *NanaNode) Readdir(ctx context.Context) (fs.DirStream, syscall.Errno)
- func (n *NanaNode) Release(ctx context.Context, f fs.FileHandle) (err syscall.Errno)
- func (n *NanaNode) Rename(ctx context.Context, name string, newParent fs.InodeEmbedder, newName string, ...) syscall.Errno
- func (n *NanaNode) Rmdir(ctx context.Context, name string) syscall.Errno
- func (n *NanaNode) Setattr(ctx context.Context, f fs.FileHandle, in *fuse.SetAttrIn, out *fuse.AttrOut) syscall.Errno
- func (n *NanaNode) Setxattr(ctx context.Context, attr string, data []byte, flags uint32) syscall.Errno
- func (n *NanaNode) Statfs(ctx context.Context, out *fuse.StatfsOut) syscall.Errno
- func (n *NanaNode) Unlink(ctx context.Context, name string) syscall.Errno
Constants ¶
View Source
const (
NoErr = syscall.Errno(0)
)
View Source
const RENAME_EXCHANGE = 0x2
View Source
const RENAME_NOREPLACE = 0x1
View Source
const RENAME_WHITEOUT = 0x4
Variables ¶
This section is empty.
Functions ¶
func Error2FuseSysError ¶
Types ¶
type NanaFS ¶
type NanaFS struct { controller.Controller Path string Dev uint64 Display string // contains filtered or unexported fields }
func NewNanaFsRoot ¶
func NewNanaFsRoot(cfg config.Fs, controller controller.Controller) (*NanaFS, error)
type NanaNode ¶
Click to show internal directories.
Click to hide internal directories.