A Go package for implementing a FUSE file system (fork with 'almost' zero-copy read/write)
You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Go to file
Vitaliy Filippov 84920d11dd Add vectored read to readbenchfs
You can now run `./readbenchfs --mount_point dir --vectored` and then
`dd if=dir/test of=/dev/null iflag=direct bs=1M status=progress` to test
vectored read speed.

Results from my laptop (Linux 5.10):

1 core (GOMAXPROCS=1):
- Before vectored read patch: 2.1 GB/s
- Non-vectored read after vectored read patch: 2.1 GB/s
- Vectored read: 2.8 GB/s

All cores:
- Before vectored read patch: 3.0 GB/s
- Non-vectored read after vectored read patch: 3.3 GB/s
- Vectored read: 5.9 GB/s
1 year ago
.github/workflows Add gofmt CI step (#115) 2 years ago
fsutil remove naked returns across the code base (#75) 3 years ago
fuseops Implement vectored read support 1 year ago
fusetesting remove naked returns across the code base (#75) 3 years ago
fuseutil remove naked returns across the code base (#75) 3 years ago
internal Implement vectored read support 1 year ago
samples Add vectored read to readbenchfs 1 year ago
.gitignore Add configuration to control async reads (#105) 2 years ago
LICENSE Upated the license file. 8 years ago
README.md Switch from Travis CI to GitHub Actions (#111) 2 years ago
connection.go Implement vectored read support 1 year ago
conversions.go Implement vectored read support 1 year ago
debug.go Implement vectored read support 1 year ago
doc.go Added a callout to fuseutil.NewFileSystemServer. 8 years ago
errors.go added tests and enhanced comments 6 years ago
freelists.go InMessage is initialized with a storage allocated before reads (#110) 2 years ago
go.mod declare a go module 2 years ago
go.sum declare a go module 2 years ago
mount.go Use newer mounting method (similar to fusermount) with macfuse 4.x (#106) 2 years ago
mount_config.go Implement vectored read support 1 year ago
mount_darwin.go Add gofmt CI step (#115) 2 years ago
mount_linux.go Use newer mounting method (similar to fusermount) with macfuse 4.x (#106) 2 years ago
mount_test.go Remove TestNonEmptyMountPoint; libfuse3 allows non-empty mountpoints 2 years ago
mounted_file_system.go replace imports of "golang.org/x/net/context" with "context" 5 years ago
ops.go Add support for max_pages and increase to 256 (#96) 2 years ago
unmount.go Update documentation for Go style. 6 years ago
unmount_linux.go prefer fusermount3 (from FUSE 3), fall back to old fusermount 3 years ago
unmount_std.go remove naked returns across the code base (#75) 3 years ago
writev.go Implement vectored read support 1 year ago

README.md

ci GoDoc

This package allows for writing and mounting user-space file systems from Go. Install it as follows:

go get -u github.com/jacobsa/fuse

Afterward, see the documentation for the following three packages:

  • Package fuse provides support for mounting a new file system and reading requests from the kernel.

  • Package fuseops enumerates the supported requests from the kernel, and provides documentation on their semantics.

  • Package fuseutil, in particular the FileSystem interface, provides a convenient way to create a file system type and export it to the kernel via fuse.Mount.

Make sure to also see the sub-packages of the samples package for examples and tests.

This package owes its inspiration and most of its kernel-related code to bazil.org/fuse.