fuse

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Nov 3, 2026 License: MIT Imports: 12 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package fuse exports the shared compactfs engine through FUSE.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Mount

func Mount(storage *core.FileSystem, mountpoint string, options Options) (*gofuse.Server, error)

Mount exports an existing storage engine. Stop the returned server before closing storage; storage owns writeback and its diagnostics server.

Types

type Handle

type Handle struct {
	// contains filtered or unexported fields
}

func (*Handle) Flush

func (h *Handle) Flush(ctx context.Context) syscall.Errno

func (*Handle) Fsync

func (h *Handle) Fsync(ctx context.Context, _ uint32) syscall.Errno

func (*Handle) Read

func (h *Handle) Read(ctx context.Context, dest []byte, off int64) (gofuse.ReadResult, syscall.Errno)

func (*Handle) Release

func (h *Handle) Release(ctx context.Context) syscall.Errno

func (*Handle) Write

func (h *Handle) Write(ctx context.Context, data []byte, off int64) (uint32, syscall.Errno)

type Node

type Node struct {
	fusefs.Inode
	FS *core.FileSystem

	Entry meta.Entry
	// contains filtered or unexported fields
}

Node is one directory or regular file inode. Metadata remains authoritative; the embedded go-fuse inode only holds kernel-side references and children.

func (*Node) Create

func (n *Node) Create(ctx context.Context, name string, _ uint32, mode uint32, out *gofuse.EntryOut) (*fusefs.Inode, fusefs.FileHandle, uint32, syscall.Errno)

func (*Node) Getattr

func (n *Node) Getattr(_ context.Context, _ fusefs.FileHandle, out *gofuse.AttrOut) syscall.Errno

func (*Node) Lookup

func (n *Node) Lookup(ctx context.Context, name string, out *gofuse.EntryOut) (*fusefs.Inode, syscall.Errno)

func (*Node) Mkdir

func (n *Node) Mkdir(ctx context.Context, name string, mode uint32, out *gofuse.EntryOut) (*fusefs.Inode, syscall.Errno)

func (*Node) Open

func (*Node) Opendir

func (n *Node) Opendir(_ context.Context) syscall.Errno

func (*Node) Readdir

func (n *Node) Readdir(_ context.Context) (fusefs.DirStream, syscall.Errno)

func (*Node) Rename

func (n *Node) Rename(ctx context.Context, name string, newParent fusefs.InodeEmbedder, newName string, _ uint32) syscall.Errno

func (*Node) Rmdir

func (n *Node) Rmdir(ctx context.Context, name string) syscall.Errno

func (*Node) Setattr

func (n *Node) Unlink(ctx context.Context, name string) syscall.Errno

type Options

type Options struct {
	AttrTTL time.Duration
	Mount   gofuse.MountOptions
}

Jump to

Keyboard shortcuts

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