fuselayer

package
v0.0.0-...-03b21cd Latest Latest
Warning

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

Go to latest
Published: Jan 6, 2016 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

Package fuselayer contains the go-fuse handling code.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SlowFs

type SlowFs struct {
	pathfs.FileSystem
	// contains filtered or unexported fields
}

SlowFs is a FileSystem whose operations take amounts of time determined by an associated Scheduler.

func NewSlowFs

func NewSlowFs(directory string, scheduler *scheduler.Scheduler) *SlowFs

NewSlowFs creates a new SlowFs using the specified scheduler at the given directory. The directory must be empty.

func (*SlowFs) Access

func (sfs *SlowFs) Access(name string, mode uint32, context *fuse.Context) fuse.Status

Access calls the underlying filesystem then sends a MetadataRequest and waits how long it is told to.

func (*SlowFs) Chmod

func (sfs *SlowFs) Chmod(name string, mode uint32, context *fuse.Context) fuse.Status

Chmod calls the underlying filesystem then sends a MetadataRequest and waits how long it is told to.

func (*SlowFs) Chown

func (sfs *SlowFs) Chown(name string, uid uint32, gid uint32, context *fuse.Context) fuse.Status

Chown calls the underlying filesystem then sends a MetadataRequest and waits how long it is told to.

func (*SlowFs) Create

func (sfs *SlowFs) Create(name string, flags uint32, mode uint32, context *fuse.Context) (nodefs.File, fuse.Status)

Create calls the underlying filesystem then sends a MetadataRequest and waits how long it is told to.

func (*SlowFs) GetAttr

func (sfs *SlowFs) GetAttr(name string, context *fuse.Context) (*fuse.Attr, fuse.Status)

GetAttr calls the underlying filesystem then sends a MetadataRequest and waits how long it is told to.

func (*SlowFs) GetXAttr

func (sfs *SlowFs) GetXAttr(name string, attribute string, context *fuse.Context) ([]byte, fuse.Status)

GetXAttr calls the underlying filesystem then sends a MetadataRequest and waits how long it is told to.

func (sfs *SlowFs) Link(oldName string, newName string, context *fuse.Context) fuse.Status

Link calls the underlying filesystem then sends a MetadataRequest and waits how long it is told to.

func (*SlowFs) ListXAttr

func (sfs *SlowFs) ListXAttr(name string, context *fuse.Context) ([]string, fuse.Status)

ListXAttr calls the underlying filesystem then sends a MetadataRequest and waits how long it is told to.

func (*SlowFs) Mkdir

func (sfs *SlowFs) Mkdir(name string, mode uint32, context *fuse.Context) fuse.Status

Mkdir calls the underlying filesystem then sends a MetadataRequest and waits how long it is told to.

func (*SlowFs) Mknod

func (sfs *SlowFs) Mknod(name string, mode uint32, dev uint32, context *fuse.Context) fuse.Status

Mknod calls the underlying filesystem then sends a MetadataRequest and waits how long it is told to.

func (*SlowFs) Open

func (sfs *SlowFs) Open(name string, flags uint32, context *fuse.Context) (nodefs.File, fuse.Status)

Open opens a file, and then waits until the scheduled time.

func (*SlowFs) OpenDir

func (sfs *SlowFs) OpenDir(name string, context *fuse.Context) ([]fuse.DirEntry, fuse.Status)

OpenDir calls the underlying filesystem then sends a MetadataRequest and waits how long it is told to.

func (sfs *SlowFs) Readlink(name string, context *fuse.Context) (string, fuse.Status)

Readlink calls the underlying filesystem then sends a MetadataRequest and waits how long it is told to.

func (*SlowFs) RemoveXAttr

func (sfs *SlowFs) RemoveXAttr(name string, attr string, context *fuse.Context) fuse.Status

RemoveXAttr calls the underlying filesystem then sends a MetadataRequest and waits how long it is told to.

func (*SlowFs) Rename

func (sfs *SlowFs) Rename(oldName string, newName string, context *fuse.Context) fuse.Status

Rename calls the underlying filesystem then sends a MetadataRequest and waits how long it is told to.

func (*SlowFs) Rmdir

func (sfs *SlowFs) Rmdir(name string, context *fuse.Context) fuse.Status

Rmdir calls the underlying filesystem then sends a MetadataRequest and waits how long it is told to.

func (*SlowFs) SetXAttr

func (sfs *SlowFs) SetXAttr(name string, attr string, data []byte, flags int, context *fuse.Context) fuse.Status

SetXAttr calls the underlying filesystem then sends a MetadataRequest and waits how long it is told to.

func (*SlowFs) StatFs

func (sfs *SlowFs) StatFs(name string) *fuse.StatfsOut

StatFs calls the underlying filesystem then sends a MetadataRequest and waits how long it is told to.

func (sfs *SlowFs) Symlink(value string, linkName string, context *fuse.Context) fuse.Status

Symlink calls the underlying filesystem then sends a MetadataRequest and waits how long it is told to.

func (*SlowFs) Truncate

func (sfs *SlowFs) Truncate(name string, size uint64, context *fuse.Context) fuse.Status

Truncate calls the underlying filesystem then sends a MetadataRequest and waits how long it is told to.

func (sfs *SlowFs) Unlink(name string, context *fuse.Context) fuse.Status

Unlink calls the underlying filesystem then sends a MetadataRequest and waits how long it is told to.

func (*SlowFs) Utimens

func (sfs *SlowFs) Utimens(name string, Atime *time.Time, Mtime *time.Time, context *fuse.Context) fuse.Status

Utimens calls the underlying filesystem then sends a MetadataRequest and waits how long it is told to.

Jump to

Keyboard shortcuts

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