# File lib/fuse/rfusefs-fuse.rb, line 317
      def write(ctx,path,buf,offset,ffi)
        return wrap_context(ctx,__method__,path,buf,offset,ffi) if ctx
        fh = ffi.fh

        if fh.raw
          if FuseFS::RFUSEFS_COMPATIBILITY
            return @root.raw_write(path,offset,buf.length,buf,fh.raw)
          else
            @root.raw_write(path,offset,buf.length,buf)
            return buf.length
          end
        else
          return fh.write(offset,buf)
        end
      end