ffuse

package module
v0.0.0-...-3eb13ea Latest Latest
Warning

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

Go to latest
Published: Nov 22, 2024 License: Apache-2.0 Imports: 14 Imported by: 0

README

ffuse: FUSE driver for FFS

GoDoc CI

This module defines a FUSE filesystem that exposes the FFS data format.

Note: The ffuse tool that used to live here has been susperseded by the mount subcommand of the ffs tool.

Documentation

Overview

Package ffuse implements a FUSE filesystem driver backed by the flexible filesystem package (github.com/creachadair/ffs). It is compatible with the github.com/hanwen/go-fuse packages for FUSE integration.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FS

type FS struct {
	// The fs.Inode is self-synchronizing, and is accessed via its
	// impelmentation of the fs.InodeEmbedder interface. Its key requirement is
	// that we must not copy the value.
	fs.Inode
	// contains filtered or unexported fields
}

func NewFS

func NewFS(root *file.File) *FS

NewFS constructs a new FS with the given root file.

func (*FS) Access

func (f *FS) Access(ctx context.Context, mask uint32) errno

Access implements the fs.NodeAccesser interface.

func (*FS) Create

func (f *FS) Create(ctx context.Context, name string, flags, mode uint32, out *fuse.EntryOut) (in *fs.Inode, fh fs.FileHandle, _ uint32, _ errno)

Create implements the fs.NodeCreater interface.

func (*FS) Fsync

func (f *FS) Fsync(ctx context.Context, fh fs.FileHandle, flags uint32) errno

Fsync implements the fs.NodeFsyncer interface.

func (*FS) Getattr

func (f *FS) Getattr(ctx context.Context, fh fs.FileHandle, out *fuse.AttrOut) errno

Getattr implements the fs.NodeGetattrer interface.

func (*FS) Getxattr

func (f *FS) Getxattr(ctx context.Context, attr string, dest []byte) (uint32, errno)

Getxattr implements the fs.NodeGetxattrer interface.

func (f *FS) Link(ctx context.Context, target fs.InodeEmbedder, name string, out *fuse.EntryOut) (*fs.Inode, errno)

Link implements the fs.NodeLinker interface.

func (*FS) Listxattr

func (f *FS) Listxattr(ctx context.Context, dest []byte) (uint32, errno)

Listxattr implements the fs.NodeListxattrer interface.

func (*FS) Lookup

func (f *FS) Lookup(ctx context.Context, name string, out *fuse.EntryOut) (*fs.Inode, errno)

Lookup implements the fs.NodeLookuper interface.

func (*FS) Mkdir

func (f *FS) Mkdir(ctx context.Context, name string, mode uint32, out *fuse.EntryOut) (*fs.Inode, errno)

Mkdir implements the fs.NodeMkdirer interface.

func (*FS) Open

func (f *FS) Open(ctx context.Context, flags uint32) (fs.FileHandle, uint32, errno)

Open implements the fs.NodeOpener interface.

func (*FS) Readdir

func (f *FS) Readdir(ctx context.Context) (fs.DirStream, errno)

Readdir implements the fs.NodeReaddirer interface.

func (f *FS) Readlink(ctx context.Context) ([]byte, errno)

Readlink implements the fs.NodeReadlinker interface.

func (*FS) Removexattr

func (f *FS) Removexattr(ctx context.Context, attr string) errno

Removexattr implements the fs.NodeRemovexattrer interface.

func (*FS) Rename

func (f *FS) Rename(ctx context.Context, name string, newParent fs.InodeEmbedder, newName string, flags uint32) errno

Rename implements the fs.NodeRenameer interface.

func (*FS) Rmdir

func (f *FS) Rmdir(ctx context.Context, name string) errno

Rmdir implements the fs.NodeRmdirer interface.

func (*FS) Setattr

func (f *FS) Setattr(ctx context.Context, _ fs.FileHandle, in *fuse.SetAttrIn, out *fuse.AttrOut) errno

Setattr implements the fs.NodeSetattrer interface.

func (*FS) Setxattr

func (f *FS) Setxattr(ctx context.Context, attr string, data []byte, flags uint32) errno

Setxattr implements the fs.NodeSetxattrer interface.

func (f *FS) Symlink(ctx context.Context, target, name string, out *fuse.EntryOut) (*fs.Inode, errno)

Symlink implements the fs.NodeSymlinker interface.

func (f *FS) Unlink(ctx context.Context, name string) errno

Unlink implements the fs.NodeUnlinker interface.

Directories

Path Synopsis
Package driver implements a control interface to mount and unmount a FFS filesystem via FUSE.
Package driver implements a control interface to mount and unmount a FFS filesystem via FUSE.

Jump to

Keyboard shortcuts

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