lib/ffi/libfuse/adapter/fuse3_support.rb in ffi-libfuse-0.4.0 vs lib/ffi/libfuse/adapter/fuse3_support.rb in ffi-libfuse-0.4.1
- old
+ new
@@ -22,44 +22,44 @@
def getattr(*args)
fi = args.pop
return fgetattr(*args, fi) if fi && fuse_super_respond_to?(:fgetattr)
- super(*args)
+ super
end
def truncate(*args)
fi = args.pop
return ftruncate(*args, fi) if fi && fuse_super_respond_to?(:ftruncate)
- super(*args)
+ super
end
def chown(*args)
args.pop
- super(*args)
+ super
end
def chmod(*args)
args.pop
- super(*args)
+ super
end
# TODO: Fuse3 deprecated flag utime_omit_ok - which meant that UTIME_OMIT and UTIME_NOW are passed through
# instead of ????
# Strictly if the flag is not set this compat shim should convert utime now values to Time.now
# but there is no way to handle OMIT
def utimens(*args)
args.pop
- super(*args) if defined?(super)
+ super if defined?(super)
end
def init(*args)
args.pop
# TODO: populate FuseConfig with output from fuse_flags/FuseConnInfo where appropriate
- super(*args)
+ super
end
def readdir(*args, &block)
# swallow the flag arg unknown to fuse 2
args.pop
@@ -69,10 +69,10 @@
# wrap the filler proc for the extra flags argument
proc { |buf, name, stat, off| a.call(buf, name, stat, off, 0) }
end
- super(*args, &block)
+ super
end
def fuse_respond_to(fuse_callback)
super || (%i[truncate getattr].include?(fuse_callback) && fuse_super_respond_to?("f#{fuse_callback}"))
end