forgetfs

package
v0.0.0-...-3a5cf19 Latest Latest
Warning

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

Go to latest
Published: May 30, 2019 License: Apache-2.0, BSD-2-Clause, BSD-3-Clause, + 1 more Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ForgetFS

type ForgetFS struct {
	// contains filtered or unexported fields
}

func NewFileSystem

func NewFileSystem() (fs *ForgetFS)

Create a file system whose sole contents are a file named "foo" and a directory named "bar".

The file "foo" may be opened for reading and/or writing, but reads and writes aren't supported. Additionally, any non-existent file or directory name may be created within any directory, but the resulting inode will appear to have been unlinked immediately.

The file system maintains reference counts for the inodes involved. It will panic if a reference count becomes negative or if an inode ID is re-used after we expect it to be dead. Its Check method may be used to check that there are no inodes with unexpected reference counts remaining, after unmounting.

func (*ForgetFS) Check

func (fs *ForgetFS) Check()

Panic if there are any inodes that have a non-zero reference count. For use after unmounting.

func (*ForgetFS) ServeOps

func (fs *ForgetFS) ServeOps(c *fuse.Connection)

Jump to

Keyboard shortcuts

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