Documentation ¶
Overview ¶
Package fuselayer contains the go-fuse handling code.
Index ¶
- type SlowFs
- func (sfs *SlowFs) Access(name string, mode uint32, context *fuse.Context) fuse.Status
- func (sfs *SlowFs) Chmod(name string, mode uint32, context *fuse.Context) fuse.Status
- func (sfs *SlowFs) Chown(name string, uid uint32, gid uint32, context *fuse.Context) fuse.Status
- func (sfs *SlowFs) Create(name string, flags uint32, mode uint32, context *fuse.Context) (nodefs.File, fuse.Status)
- func (sfs *SlowFs) GetAttr(name string, context *fuse.Context) (*fuse.Attr, fuse.Status)
- func (sfs *SlowFs) GetXAttr(name string, attribute string, context *fuse.Context) ([]byte, fuse.Status)
- func (sfs *SlowFs) Link(oldName string, newName string, context *fuse.Context) fuse.Status
- func (sfs *SlowFs) ListXAttr(name string, context *fuse.Context) ([]string, fuse.Status)
- func (sfs *SlowFs) Mkdir(name string, mode uint32, context *fuse.Context) fuse.Status
- func (sfs *SlowFs) Mknod(name string, mode uint32, dev uint32, context *fuse.Context) fuse.Status
- func (sfs *SlowFs) Open(name string, flags uint32, context *fuse.Context) (nodefs.File, fuse.Status)
- func (sfs *SlowFs) OpenDir(name string, context *fuse.Context) ([]fuse.DirEntry, fuse.Status)
- func (sfs *SlowFs) Readlink(name string, context *fuse.Context) (string, fuse.Status)
- func (sfs *SlowFs) RemoveXAttr(name string, attr string, context *fuse.Context) fuse.Status
- func (sfs *SlowFs) Rename(oldName string, newName string, context *fuse.Context) fuse.Status
- func (sfs *SlowFs) Rmdir(name string, context *fuse.Context) fuse.Status
- func (sfs *SlowFs) SetXAttr(name string, attr string, data []byte, flags int, context *fuse.Context) fuse.Status
- func (sfs *SlowFs) StatFs(name string) *fuse.StatfsOut
- func (sfs *SlowFs) Symlink(value string, linkName string, context *fuse.Context) fuse.Status
- func (sfs *SlowFs) Truncate(name string, size uint64, context *fuse.Context) fuse.Status
- func (sfs *SlowFs) Unlink(name string, context *fuse.Context) fuse.Status
- func (sfs *SlowFs) Utimens(name string, Atime *time.Time, Mtime *time.Time, context *fuse.Context) fuse.Status
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 ¶
NewSlowFs creates a new SlowFs using the specified scheduler at the given directory. The directory must be empty.
func (*SlowFs) Access ¶
Access calls the underlying filesystem then sends a MetadataRequest and waits how long it is told to.
func (*SlowFs) Chmod ¶
Chmod calls the underlying filesystem then sends a MetadataRequest and waits how long it is told to.
func (*SlowFs) Chown ¶
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 ¶
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 (*SlowFs) Link ¶
Link calls the underlying filesystem then sends a MetadataRequest and waits how long it is told to.
func (*SlowFs) ListXAttr ¶
ListXAttr calls the underlying filesystem then sends a MetadataRequest and waits how long it is told to.
func (*SlowFs) Mkdir ¶
Mkdir calls the underlying filesystem then sends a MetadataRequest and waits how long it is told to.
func (*SlowFs) Mknod ¶
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 ¶
OpenDir calls the underlying filesystem then sends a MetadataRequest and waits how long it is told to.
func (*SlowFs) Readlink ¶
Readlink calls the underlying filesystem then sends a MetadataRequest and waits how long it is told to.
func (*SlowFs) RemoveXAttr ¶
RemoveXAttr calls the underlying filesystem then sends a MetadataRequest and waits how long it is told to.
func (*SlowFs) Rename ¶
Rename calls the underlying filesystem then sends a MetadataRequest and waits how long it is told to.
func (*SlowFs) Rmdir ¶
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 ¶
StatFs calls the underlying filesystem then sends a MetadataRequest and waits how long it is told to.
func (*SlowFs) Symlink ¶
Symlink calls the underlying filesystem then sends a MetadataRequest and waits how long it is told to.
func (*SlowFs) Truncate ¶
Truncate calls the underlying filesystem then sends a MetadataRequest and waits how long it is told to.