Back to godoc.org

Package gfs

v0.0.9
Latest Go to latest
Published: Jun 24, 2020 | License: Apache-2.0 | Module: github.com/grailbio/base

Overview

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

Index

Package Files

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
Documentation was rendered with GOOS=linux and GOARCH=amd64.

Jump to identifier

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to identifier