fusego/README.md

32 lines
1.5 KiB
Markdown
Raw Normal View History

2015-02-27 01:24:28 +03:00
[![GoDoc](https://godoc.org/github.com/jacobsa/ogletest?status.svg)](https://godoc.org/github.com/jacobsa/fuse)
This package allows for writing and mounting user-space file systems from Go. It
is a wrapper around [bazil.org/fuse][bazil], which does the heavy lifting. It
2015-02-27 01:25:51 +03:00
does not make use of the [bazil.org/fuse/fs][bazil-fs] sub-package, which allows
2015-02-27 01:24:28 +03:00
for something like an object-orientend representation of files and directories,
and contains a decent amount of canned behavior.
The chief improvements and/or differences from the bazil.org packages are:
* No surprises in the form of magic/default behaviors. You must provide an
implementation for every method in the interface. Embed a
`fuseutil.NotImplementedFileSystem` struct to have default implementations
that return `ENOSYS`.
2015-02-27 01:24:28 +03:00
* Every method, struct, and field is thoroughly documented. This may help you
get your bearings in the world of FUSE, the Linux VFS, traditional file
system implementations, etc., all of which tend to be very poorly
documented.
2015-02-27 03:46:57 +03:00
* Support for arbitrary offsets in directory entries returned by `ReadDir`.
(The bazil.org package assumes that offsets must be counts of bytes.)
2015-02-27 01:24:28 +03:00
The very large disadvantage over using the bazil.org packages is that many
features have not yet been exposed.
2015-03-24 08:41:03 +03:00
Make sure to see the sub-packages of the [samples][] package.
2015-02-27 01:24:28 +03:00
[bazil]: http://godoc.org/bazil.org/fuse
[bazil-fs]: http://godoc.org/bazil.org/fuse/fs
2015-03-24 08:41:03 +03:00
[samples]: http://godoc.org/github.com/jacobsa/fuse/samples