grail-fuse

command
v0.0.9 Latest Latest
Warning

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

Go to latest
Published: Jun 24, 2020 License: Apache-2.0 Imports: 11 Imported by: 0

README

Grail-fuse

Grail-fuse allows reading and writing S3 files as if they are on the local file system. It supports Linux and OSX. No extra step is needed for Linux. For OSX, install osxfuse from https://github.com/osxfuse/osxfuse/releases

Usage

grail-fuse [-remote-root-dir DIR] [-daemon] [-log-dir LOGDIR] MOUNTPOINT

Example:

grail-fuse -daemon $HOME/s3

Flag -mount-root-dir defaults to s3://. Thus, after mounting grail-fuse on ~/s3, Toplevel directories under ~/s3 will list S3 buckets owned by the default AWS account. You can descend into buckets to read files underneath.

If -daemon is set, grail-fuse runs as a daemon.

Unmounting the file system

To unmount grail-fuse, run:

fusermount -u $HOME/s3

on Linux, or

umount $HOME/s3

on OSX.

Bugs and limitations

  • mkdir is not supported. rmdir is supported, but is is just a noop. You can just create a file under a nonexisting subdirectory without mkdiring it first.

  • grail-fuse caches file attributes in memory for up to 5 minutes. Thus, if the remote file system is updated by another user, it will not be reflected for up to five minutes. You can send a SIGHUP to grail-fuse to invalidate the cache.

  • File contents are not written back to the remote file system until close.

  • In general, random seeks are supported during writes.

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
Package gfs implements FUSE on top oh grailfile.
Package gfs implements FUSE on top oh grailfile.

Jump to

Keyboard shortcuts

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