fsnode

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Feb 20, 2022 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrorInvalidFilesystemStatus = errors.New("invalid filesytem status")

Functions

This section is empty.

Types

type MCHFileHandle added in v0.3.0

type MCHFileHandle struct {
	fs.FileHandle
	// contains filtered or unexported fields
}

func (*MCHFileHandle) Read added in v0.3.0

func (mf *MCHFileHandle) Read(ctx context.Context, dest []byte, off int64) (fuse.ReadResult, syscall.Errno)

func (*MCHFileHandle) Write added in v0.3.0

func (mf *MCHFileHandle) Write(ctx context.Context, data []byte, off int64) (written uint32, errno syscall.Errno)

type MCHNode

type MCHNode struct {
	fs.Inode
	// contains filtered or unexported fields
}

func NewMCHNode

func NewMCHNode(file *mch.File) *MCHNode

func (*MCHNode) Create

func (mn *MCHNode) Create(
	ctx context.Context,
	name string,
	flags uint32,
	mode uint32,
	out *fuse.EntryOut,
) (
	node *fs.Inode,
	fh fs.FileHandle,
	fuseFlags uint32,
	errno syscall.Errno,
)

func (*MCHNode) Getattr

func (mn *MCHNode) Getattr(ctx context.Context, file fs.FileHandle, out *fuse.AttrOut) syscall.Errno

func (*MCHNode) Getxattr

func (mn *MCHNode) Getxattr(ctx context.Context, attr string, dest []byte) (uint32, syscall.Errno)

func (*MCHNode) Lookup

func (mn *MCHNode) Lookup(ctx context.Context, name string, out *fuse.EntryOut) (*fs.Inode, syscall.Errno)

func (*MCHNode) Mkdir

func (mn *MCHNode) Mkdir(
	ctx context.Context,
	name string,
	mode uint32,
	out *fuse.EntryOut,
) (
	newInode *fs.Inode,
	errno syscall.Errno,
)

func (*MCHNode) Mknod

func (*MCHNode) Mknod(
	ctx context.Context,
	name string,
	mode uint32,
	dev uint32,
	out *fuse.EntryOut,
) (
	*fs.Inode,
	syscall.Errno,
)

func (*MCHNode) Open

func (mn *MCHNode) Open(ctx context.Context, flags uint32) (file fs.FileHandle, fuseFlags uint32, code syscall.Errno)

func (*MCHNode) Readdir

func (mn *MCHNode) Readdir(ctx context.Context) (fs.DirStream, syscall.Errno)

func (*MCHNode) Rename

func (mn *MCHNode) Rename(
	ctx context.Context,
	name string,
	newParent fs.InodeEmbedder,
	newName string,
	flags uint32,
) syscall.Errno

func (*MCHNode) Rmdir

func (mn *MCHNode) Rmdir(ctx context.Context, name string) syscall.Errno

func (*MCHNode) Setattr

func (mn *MCHNode) Setattr(ctx context.Context, f fs.FileHandle, in *fuse.SetAttrIn, out *fuse.AttrOut) syscall.Errno

func (*MCHNode) Setxattr

func (mn *MCHNode) Setxattr(ctx context.Context, attr string, dest []byte, flags uint32) syscall.Errno
func (mn *MCHNode) Unlink(ctx context.Context, name string) syscall.Errno

Jump to

Keyboard shortcuts

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