fs

package
v0.0.0-...-42c81d0 Latest Latest
Warning

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

Go to latest
Published: Feb 6, 2015 License: MIT Imports: 25 Imported by: 0

Documentation

Index

Constants

View Source
const VolumeIDLen = 64

Variables

This section is empty.

Functions

func Create

func Create(db *bolt.DB, volumeName string) error

Create a new volume.

Types

type Volume

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

func Open

func Open(db *bolt.DB, chunkStore chunks.Store, volumeID *VolumeID) (*Volume, error)

Open returns a FUSE filesystem instance serving content from the given volume. The result can be passed to bazil.org/fuse/fs#Serve to start serving file access requests from the kernel.

Caller guarantees volume ID exists at least as long as requests are served for this file system.

func (*Volume) GenerateInode

func (*Volume) GenerateInode(parent uint64, name string) uint64

func (*Volume) Init

func (f *Volume) Init(ctx context.Context, req *fuse.InitRequest, resp *fuse.InitResponse) error

func (*Volume) Root

func (v *Volume) Root() (fs.Node, error)

type VolumeID

type VolumeID [VolumeIDLen]byte

func NewVolumeID

func NewVolumeID(b []byte) (*VolumeID, error)

func RandomVolumeID

func RandomVolumeID() (*VolumeID, error)

func (*VolumeID) Bytes

func (id *VolumeID) Bytes() []byte

Directories

Path Synopsis
Package inodes contains the logic for allocating inode numbers.
Package inodes contains the logic for allocating inode numbers.
wire
Package wire is a generated protocol buffer package.
Package wire is a generated protocol buffer package.
Package wire is a generated protocol buffer package.
Package wire is a generated protocol buffer package.

Jump to

Keyboard shortcuts

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