Documentation ¶
Overview ¶
Package gofer implements a remote 9p filesystem.
Index ¶
Constants ¶
View Source
const FilesystemName = "9p"
FilesystemName is the name under which the filesystem is registered. The name matches fs/9p/vfs_super.c:v9fs_fs_type.name.
Variables ¶
View Source
var ( // ErrNoTransport is returned when there is no 'trans' option. ErrNoTransport = errors.New("missing required option: 'trans='") // ErrNoReadFD is returned when there is no 'rfdno' option. ErrNoReadFD = errors.New("missing required option: 'rfdno='") // ErrNoWriteFD is returned when there is no 'wfdno' option. ErrNoWriteFD = errors.New("missing required option: 'wfdno='") )
Functions ¶
func NewFile ¶
func NewFile(ctx context.Context, dirent *fs.Dirent, flags fs.FileFlags, i *inodeOperations, handles *handles) *fs.File
NewFile returns a file. NewFile is not appropriate with host pipes and sockets.
func Root ¶
func Root(ctx context.Context, dev string, filesystem fs.Filesystem, superBlockFlags fs.MountSourceFlags, o opts) (*fs.Inode, error)
Root returns the root of a 9p mount. This mount is bound to a 9p server based on conn. Otherwise configuration parameters are:
* dev: connection id * filesystem: the filesystem backing the mount * superBlockFlags: the mount flags describing general mount options * opts: parsed 9p mount options
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.