# File lib/fuse/rfusefs-fuse.rb, line 121 def initialize(root) @root = root @created_files = { } # Keep track of changes to file counts and sizes made via Fuse - for #statfs @adj_nodes = 0 @adj_size = 0 #Define method missing for our filesystem #so we can just call all the API methods as required. def @root.method_missing(method,*args) # our filesystem might implement method_missing itself super rescue NoMethodError DEFAULT_FS.send(method,*args) end # Define sig<name> methods to handle signals sigmethods = Signal.list.keys.map { |sn| "sig#{sn.downcase}".to_sym }.select { |sm| @root.respond_to?(sm) } def_delegators(:@root,*sigmethods) end