lib/ffi/libfuse/adapter/fuse2_compat.rb in ffi-libfuse-0.4.0 vs lib/ffi/libfuse/adapter/fuse2_compat.rb in ffi-libfuse-0.4.1
- old
+ new
@@ -10,31 +10,31 @@
include Adapter
if FUSE_MAJOR_VERSION == 2
# @!visibility private
def getattr(path, stat, fuse_file_info = nil)
- super(path, stat, fuse_file_info)
+ super
end
def truncate(path, size, fuse_file_info = nil)
- super(path, size, fuse_file_info)
+ super
end
def init(fuse_conn_info, fuse_config = nil)
- super(fuse_conn_info, fuse_config)
+ super
end
def chown(path, uid, gid, fuse_file_info = nil)
- super(path, uid, gid, fuse_file_info)
+ super
end
def chmod(path, mode, fuse_file_info = nil)
- super(path, mode, fuse_file_info)
+ super
end
def utimens(path, times, fuse_file_info = nil)
- super(path, times, fuse_file_info)
+ super
end
def readdir(path, buffer, filler, offset, fuse_file_info, fuse_readdir_flag = 0)
f3_fill = proc { |buf, name, stat, off = 0, _fuse_fill_dir_flag = 0| filler.call(buf, name, stat, off) }
super(path, buffer, f3_fill, offset, fuse_file_info, fuse_readdir_flag)
@@ -43,10 +43,10 @@
def fuse_respond_to?(fuse_method)
# getdir is never supported here anyway
# fgetattr and ftruncate already fallback to the respective basic method
return false if %i[getdir fgetattr ftruncate].include?(fuse_method)
- super(fuse_method)
+ super
end
def fuse_options(args)
super if defined?(super)
return unless respond_to?(:init_fuse_config)