# File lib/fuse/rfusefs-fuse.rb, line 475
      def statfs(ctx,path)
        return wrap_context(ctx,__method__,path) if ctx
        block_size = 1024

        stats = @root.statistics(path)
        case stats
        when Array
          used_space, used_files, total_space, total_files = stats
          used_files ||= 0
          used_space ||= 0
          total_files ||= used_files
          total_space ||= used_space
          result = RFuse::StatVfs.new(
            "bsize" => block_size,
            "frsize" => block_size,
            "blocks" => total_space / block_size,
            "bfree" => (total_space - used_space)/block_size,
            "bavail" => (total_space - used_space)/block_size,
            "files" => total_files,
            "ffree" => (total_files - used_files)
          )
          return result
        else
          #expected to quack like rfuse:statvfs
          return stats
        end
      end