fs

package
v0.0.0-...-f6a3884 Latest Latest
Warning

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

Go to latest
Published: Nov 24, 2024 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Debug = false

	// mount with -o allowother
	Other = false

	// Try to use "mount" syscall instead of fusermount
	DirectMount = false

	// Allow to fall back to fusermount (probably doesn't matter given directMount false)
	DirectMountStrict = false

	// original FS is for the loopback root
	OriginalFS = "/"

	// Writes to /tmp/compatlibxxxx
	TemporaryDirname = "compatlib"

	// Name for the loopback filesystem
	LoopbackName = "loopback"

	// Default FS root under the mountpoint
	DefaultRootFS = "root"

	// Default FS cache under the mountpoint
	DefaultCacheFS = "cache"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type AllFileOps

type AllFileOps interface {
	fs.FileReader
	fs.FileWriter
	fs.FileFlusher
}

The custom Wrapper file allows us to carry forward the file handle

type WrapperFile

type WrapperFile struct {
	AllFileOps
	Fid int
}

We use this wrapperFile type to hold the file handle This way we can make a direct association between open and close

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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