gfs

package
v0.0.11 Latest Latest
Warning

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

Go to latest
Published: Mar 7, 2024 License: Apache-2.0 Imports: 21 Imported by: 0

Documentation

Overview

Package gfs implements FUSE on top oh grailfile. Function Main is the entry point.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Main

func Main(ctx context.Context, remoteRootDir, mountDir string, daemon bool, tmpDir, logDir string)

Main starts the FUSE server. It arranges so that contents of remoteRootDir can be accessed through mountDir. Arg remoteRootDir is typically "s3://". mountDir must be a directory in the local file system.

If daemon==true, this function will fork itself to become a background process, and this process will exit. Otherwise this function blocks until the filesystem is unmounted by a superuser running "umount <dir>".

Arg tmpDir specifies the directory to store temporary files. If tmpDir=="", it is set to /tmp/gfs-cache-<uid>.

logDir specifies the directory for storing log files. If "", log messages are sent to stderr.

func NewRoot

func NewRoot(ctx context.Context, remoteRootDir, tmpDir string) fs.InodeEmbedder

Types

This section is empty.

Jump to

Keyboard shortcuts

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