fs

package
v0.0.0-...-82975aa Latest Latest
Warning

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

Go to latest
Published: Mar 21, 2022 License: LGPL-2.1 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewsdfsDirStream

func NewsdfsDirStream(ctx context.Context, name string) (ffs.DirStream, syscall.Errno)

NewsdfsDirStream open a directory for reading as a DirStream

func NewsdfsFile

func NewsdfsFile(fd int64, path string) ffs.FileHandle

NewsdfsFile creates a FileHandle out of a file descriptor. All operations are implemented.

func NewsdfsRoot

func NewsdfsRoot(root string, connectionInfo ConnectionInfo) (ffs.InodeEmbedder, error)

NewsdfsRoot returns a root node for a sdfs file system whose root is at the given root. This node implements all NodeXxxxer operations available.

func SetLogLevel

func SetLogLevel(level log.Level)

SetLogLevel sets the log level for this service

func ToAttr

func ToAttr(fi *sapi.Stat, out *fuse.Attr)

ToAttr turns stat into attr

func ToErrno

func ToErrno(err error) syscall.Errno

ToErrno exhumes the syscall.Errno error from wrapped error values.

func ToStat

func ToStat(fi *sapi.Stat, out *fuse.EntryOut)

ToStat turns a fileinfo into a stat

Types

type ConnectionInfo

type ConnectionInfo struct {
	Buffers      int
	Threads      int
	LogPath      string
	Cachsize     int
	Cachage      int
	Volumeid     int64
	Nocompress   bool
	Dedupe       bool
	Debug        bool
	ServerPath   string
	MountPath    string
	User         string
	Pwd          string
	DisableTrust bool
}

Jump to

Keyboard shortcuts

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