gfs

package
Version: v0.0.0-...-04350b9 Latest Latest
Warning

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

Go to latest
Published: Jan 1, 2021 License: BSD-3-Clause Imports: 17 Imported by: 0

Documentation

Index

Constants

View Source
const (
	LRUSize = 1000
)

The number of entries for the files cache.

Variables

This section is empty.

Functions

func IDtoInode

func IDtoInode(id string) uint64

IDtoInode maps a Drive id into an inode.

It uses CRC64 ECMA table to do the mapping.

func MountAll

func MountAll(client *drive.Service, mounts Mountpoints)

MountAll mounts multiple mountpoints and blocks until they are all unmounted.

Types

type Mountpoint

type Mountpoint struct {
	*fuse.Server

	Logger *zap.SugaredLogger
}

Mountpoint defines a single mountpoint.

func Mount

func Mount(tc gdrive.TracedClient, rootID string, to string) (*Mountpoint, error)

Mount mounts the fs.

type Mountpoints

type Mountpoints map[string]string

Mountpoints defines a mapping from local mount directory to Drive directory name.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto