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)