Skip to content

flexfrank/rbfuse

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

rbfuse

RbFuse is a library to use FUSE in ruby.

RbFuse is based on the existing library FuseFS and FuseFS-OSX, but it has the different API.

Requirements

  • Ruby 1.8.7, 1.9 or later

  • FUSE 2.6 or later

How to Run

reuqire "rubygems"
require "rbfuse"

RbFuse.set_root(filesystem_object)
RbFuse.mount_under(path_to_mount_directory)
RbFuse.run

How to Implement Your Filesystem

  • Define a subclass of RbFuse::FuseDir

  • Implement following methods:

    • readdir(path) #=> [filename, …]

    • getattr(path) #=> RbFuse::Stat

    • open(path,mode,handle)

    • read(path,offset,size,handle) #=>String

    • write(path,offset,str, handle)

    • close(path,handle)

    • unlink(path)

    • mkdir(path,perm)

    • rmdir(path)

Copyright © 2009 Shumpei Akai. See LICENSE for details.

About

RbFuse is a library to implement Filesystem in Ruby using FUSE

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published