erofs

package
v0.0.0-...-a0bbfda Latest Latest
Warning

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

Go to latest
Published: Dec 18, 2024 License: Apache-2.0, MIT Imports: 27 Imported by: 3

Documentation

Overview

Package erofs implements erofs.

Index

Constants

View Source
const Name = "erofs"

Name is the filesystem name. It is part of the interface used by users, e.g. via annotations, and shouldn't change.

Variables

This section is empty.

Functions

This section is empty.

Types

type FilesystemType

type FilesystemType struct{}

FilesystemType implements vfs.FilesystemType.

+stateify savable

func (FilesystemType) GetFilesystem

func (fstype FilesystemType) GetFilesystem(ctx context.Context, vfsObj *vfs.VirtualFilesystem, creds *auth.Credentials, source string, opts vfs.GetFilesystemOptions) (*vfs.Filesystem, *vfs.Dentry, error)

GetFilesystem implements vfs.FilesystemType.GetFilesystem.

func (FilesystemType) Name

func (FilesystemType) Name() string

Name implements vfs.FilesystemType.Name.

func (FilesystemType) Release

func (FilesystemType) Release(ctx context.Context)

Release implements vfs.FilesystemType.Release.

func (*FilesystemType) StateFields

func (fstype *FilesystemType) StateFields() []string

func (*FilesystemType) StateLoad

func (fstype *FilesystemType) StateLoad(ctx context.Context, stateSourceObject state.Source)

+checklocksignore

func (*FilesystemType) StateSave

func (fstype *FilesystemType) StateSave(stateSinkObject state.Sink)

+checklocksignore

func (*FilesystemType) StateTypeName

func (fstype *FilesystemType) StateTypeName() string

type InternalFilesystemOptions

type InternalFilesystemOptions struct {
	// If UniqueID is non-empty, it is an opaque string used to reassociate the
	// filesystem with a new image FD during restoration from checkpoint.
	UniqueID vfs.RestoreID
}

InternalFilesystemOptions may be passed as vfs.GetFilesystemOptions.InternalData to FilesystemType.GetFilesystem.

+stateify savable

func (*InternalFilesystemOptions) StateFields

func (i *InternalFilesystemOptions) StateFields() []string

func (*InternalFilesystemOptions) StateLoad

func (i *InternalFilesystemOptions) StateLoad(ctx context.Context, stateSourceObject state.Source)

+checklocksignore

func (*InternalFilesystemOptions) StateSave

func (i *InternalFilesystemOptions) StateSave(stateSinkObject state.Sink)

+checklocksignore

func (*InternalFilesystemOptions) StateTypeName

func (i *InternalFilesystemOptions) StateTypeName() string

Jump to

Keyboard shortcuts

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