Documentation ¶
Index ¶
- Constants
- Variables
- func Error2FuseSysError(operation string, 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) Getattr(ctx context.Context, out *fuse.AttrOut) 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) 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) Readlink(ctx context.Context) ([]byte, syscall.Errno)
- func (n *NanaNode) Release(ctx context.Context, f fs.FileHandle) (err syscall.Errno)
- func (n *NanaNode) Removexattr(ctx context.Context, attr string) 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) Symlink(ctx context.Context, target, name string, out *fuse.EntryOut) (node *fs.Inode, errno syscall.Errno)
- func (n *NanaNode) Unlink(ctx context.Context, name string) syscall.Errno
Constants ¶
View Source
const ( NoErr = syscall.Errno(0) RenameNoreplace = 0x1 RenameExchange = 0x2 RenameWhiteout = 0x4 )
View Source
const (
ENOAttr = syscall.ENODATA
)
Variables ¶
View Source
var (
MountDev uint64
)
Functions ¶
Types ¶
type NanaFS ¶
type NanaFS struct { controller.Controller Path string Display string MountOpts []string // contains filtered or unexported fields }
func NewNanaFsRoot ¶
func NewNanaFsRoot(cfg config.FUSE, controller controller.Controller) (*NanaFS, error)
func (*NanaFS) GetSourceEntry ¶
type NanaNode ¶
func (*NanaNode) Removexattr ¶
Click to show internal directories.
Click to hide internal directories.