Class RFuse::FuseDelegator
In: lib/rfuse.rb
Parent: Fuse

This class is useful to make your filesystem implementation debuggable and testable without needing to mount an actual filesystem or inherit from {Fuse}

Methods

debug=   debug?   new   sigusr1   to_s  

Constants

FUSE_METHODS = [ :getattr, :readlink, :getdir, :mknod, :mkdir, :unlink, :rmdir, :symlink, :rename, :link, :chmod, :chown, :truncate, :utime, :open, :create, :read, :write, :statfs, :flush, :release, :fsync, :setxattr, :getxattr, :listxattr,:removexattr, :opendir, :readdir, :releasedir, :fsycndir, :init, :destroy, :access, :ftruncate, :fgetattr, :lock, :utimens, :bmap, :ioctl, :poll ]   Available fuse methods -see fuse.sourceforge.net/doxygen/structfuse__operations.html
 Note :getdir and :utime are deprecated
 :ioctl, :poll are not implemented in the C extension

Public Class methods

@param [Object] fuse_object your filesystem object that responds to fuse methods @param [String] mountpoint existing directory where the filesystem will be mounted @param [String…] options fuse mount options (use "-h" to see a list)

Create and mount a filesystem

Public Instance methods

Set debugging on or off @param [Boolean] value enable or disable debugging @return [Boolean] the new debug value @since 1.1.0

RFuse Debugging status

@note this is independent of the Fuse kernel module debugging enabled with the "-d" mount option

@return [Boolean] whether debugging information should be printed to $stderr around each fuse method.

   Defaults to $DEBUG

@since 1.1.0 @see sigusr1

USR1 sig handler - toggle debugging of fuse methods @return [void]

@private

[Validate]