Skip to content
/ rfuse Public
forked from lwoggardner/rfuse

Ruby FUSE bindings - write Filesystems in Ruby

License

Notifications You must be signed in to change notification settings

dup2/rfuse

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

RFuse

http://rubygems.org/gems/rfuse Gem Version

Ruby FUSE binding

FUSE (Filesystem in USErspace) is a simple interface for userspace programs to export a virtual filesystem to the linux kernel. FUSE aims to provide a secure method for non privileged users to create and mount their own filesystem implementations.

This library provides the low-level fuse operations as callbacks into a ruby object.

For a more ruby-ish API for creating filesystems see {http://rubygems.org/gems/rfusefs RFuseFS} which is built on RFuse and takes care of some of the heavy lifting.

Dependencies

  • Ruby 1.9+
  • Fuse 2.8

Installation

gem install rfuse

Creating a filesystem

Create your filesystem as a class implementing the abstract FUSE methods from {RFuse::Fuse} as necessary.

Run it with {RFuse.main}

For a sample filesystem see sample/test-ruby.rb

To run the example:

 mkdir /tmp/fuse
 ruby sample/test-ruby.rb /tmp/fuse

there should be an empty in-memory filesystem mounted at /tmp/fuse

HISTORY

This project is forked from rfuse-ng which was forked from the original rfuse.

RFuse-NG: Tamás László Fábián [email protected] et al on Github

Original Rfuse (@rubyforge): Peter Schrammel AT gmx.de

See also {file:CHANGES.md}

CONTRIBUTING

  1. Fork it on {http://github.com/lwoggardner/rfuse on GitHub}
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Write some specs and make them pass
  4. Commit your changes (git commit -am 'Added some feature')
  5. Push to the branch (git push origin my-new-feature)
  6. Create new Pull Request

About

Ruby FUSE bindings - write Filesystems in Ruby

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • C 55.3%
  • Ruby 44.7%