fusefrontend_reverse

package
v1.4.4 Latest Latest
Warning

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

Go to latest
Published: Mar 18, 2018 License: MIT Imports: 25 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ReverseFS added in v1.2.1

type ReverseFS struct {
	// Embed pathfs.defaultFileSystem for a ENOSYS implementation of all methods
	pathfs.FileSystem
	// contains filtered or unexported fields
}

ReverseFS implements the pathfs.FileSystem interface and provides an encrypted view of a plaintext directory.

func NewFS

NewFS returns an encrypted FUSE overlay filesystem. In this case (reverse mode) the backing directory is plain-text and ReverseFS provides an encrypted view.

func (*ReverseFS) Access added in v1.2.1

func (rfs *ReverseFS) Access(relPath string, mode uint32, context *fuse.Context) fuse.Status

Access - FUSE call

func (*ReverseFS) DecryptPath added in v1.2.1

func (rfs *ReverseFS) DecryptPath(cipherPath string) (string, error)

DecryptPath implements ctlsock.Backend

func (*ReverseFS) EncryptPath added in v1.2.1

func (rfs *ReverseFS) EncryptPath(plainPath string) (string, error)

EncryptPath implements ctlsock.Backend. This is actually not used inside reverse mode, but we implement it because third-party tools want to encrypt paths through the control socket.

func (*ReverseFS) GetAttr added in v1.2.1

func (rfs *ReverseFS) GetAttr(relPath string, context *fuse.Context) (*fuse.Attr, fuse.Status)

GetAttr - FUSE call "relPath" is the relative ciphertext path

func (*ReverseFS) Open added in v1.2.1

func (rfs *ReverseFS) Open(relPath string, flags uint32, context *fuse.Context) (fuseFile nodefs.File, status fuse.Status)

Open - FUSE call

func (*ReverseFS) OpenDir added in v1.2.1

func (rfs *ReverseFS) OpenDir(cipherPath string, context *fuse.Context) ([]fuse.DirEntry, fuse.Status)

OpenDir - FUSE readdir call

func (rfs *ReverseFS) Readlink(relPath string, context *fuse.Context) (string, fuse.Status)

Readlink - FUSE call

func (*ReverseFS) StatFs added in v1.2.1

func (rfs *ReverseFS) StatFs(path string) *fuse.StatfsOut

StatFs - FUSE call. Returns information about the filesystem (free space etc). Securing statfs against symlink races seems to be more trouble than it's worth, so we just ignore the path and always return info about the backing storage root dir.

Jump to

Keyboard shortcuts

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