ramfs

package module
v0.0.0-...-36f2e46 Latest Latest
Warning

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

Go to latest
Published: May 10, 2013 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

A simple Ramfs on top of Fuse

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FS

type FS struct {
	DefaultNodeFileSystem
	// contains filtered or unexported fields
}

Ramfs filesystem

func New

func New(uid, gid int) *FS

Create a new FS ready for mounting. Alternative to Init.

func (*FS) Init

func (fs *FS) Init(uid int, gid int)

Initialize an FS. Alternative to New.

func (*FS) Mount

func (fs *FS) Mount(mountpoint string) error

Mount a filesystem. Returns when the filesystem is ready for use. All mounted filesystems should be unmounted with Unmount.

func (*FS) Root

func (fs *FS) Root() FsNode

func (*FS) Unmount

func (fs *FS) Unmount() error

Unmounts a filesystem.

Jump to

Keyboard shortcuts

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