lib/ffi/libfuse/fuse3.rb in ffi-libfuse-0.4.0 vs lib/ffi/libfuse/fuse3.rb in ffi-libfuse-0.4.1
- old
+ new
@@ -56,16 +56,16 @@
class << self
def parse_cmdline(args, handler: nil)
cmdline_opts = FuseCmdlineOpts.new
raise Error unless Libfuse.fuse_parse_cmdline3(args, cmdline_opts).zero?
- handler&.fuse_debug(cmdline_opts.debug) if handler.respond_to?(:fuse_debug)
+ handler&.fuse_debug(cmdline_opts.debug?) if handler.respond_to?(:fuse_debug)
# mimics fuse_main which exits after printing version info, even if -h
- if cmdline_opts.show_version
+ if cmdline_opts.show_version?
show_version(handler)
- elsif cmdline_opts.show_help
+ elsif cmdline_opts.show_help?
show_help(args, handler)
end
cmdline_opts.to_h
end
@@ -143,11 +143,11 @@
@io ||= ::IO.for_fd(Libfuse.fuse_session_fd(session), 'r', autoclose: false)
end
private
- def native_fuse_loop_mt(max_idle_threads: 10, **_options)
- Libfuse.fuse_loop_mt3(@fuse, FuseLoopConfig.new.fill(max_idle: max_idle_threads))
+ def native_fuse_loop_mt(**options)
+ Libfuse.fuse_loop_mt3(@fuse, FuseLoopConfig.create(**options))
end
def unmount
return unless @mounted && @fuse && !@fuse.null?