Class: FFI::Libfuse::FuseFileInfo

Inherits:
Object
  • Object
show all
Includes:
StructWrapper
Defined in:
lib/ffi/libfuse/fuse_file_info.rb

Overview

FuseFileInfo

Instance Attribute Summary collapse

Attributes included from StructWrapper

#native

Method Summary

Methods included from StructWrapper

#[], #[]=, #method_missing

Methods included from StructWrapper::ClassMethods

#by_ref, #by_value

Methods included from Accessors::ClassMethods

#attr_accessor, #attr_reader, #attr_writer, #ffi_attr_accessor, #ffi_attr_reader, #ffi_attr_reader_method, #ffi_attr_readers, #ffi_attr_writer, #ffi_attr_writer_method, #ffi_attr_writers, #ffi_bitflag_accessor, #ffi_bitflag_reader, #ffi_bitflag_writer, #ffi_public_attr_readers, #ffi_public_attr_writers

Methods included from Accessors

#ffi_attr_fill, #ffi_attr_reader_member, #ffi_attr_writer_member, #fill, #inspect, #to_h

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class FFI::StructWrapper

Instance Attribute Details

#cache_readdirBoolean

Can be filled in by opendir.

Returns:

  • (Boolean)

    signals the kernel to enable caching of entries returned by readdir()

Since:

  • Fuse3



97
# File 'lib/ffi/libfuse/fuse_file_info.rb', line 97

ffi_bitflag_accessor(:bit_flags, :direct_io, :keep_cache, :nonseekable, :flock_release, :cache_readdir)

#direct_ioBoolean

Returns Can be filled in by open, to use direct I/O on this file.

Returns:

  • (Boolean)

    Can be filled in by open, to use direct I/O on this file.



# File 'lib/ffi/libfuse/fuse_file_info.rb', line 77

#fhObject

Note this fh is weakly referenced by kernel fuse, make sure a reference is kept to prevent it from being garbage collected until release()

Returns:

  • (Object)

    File handle. May be filled in by filesystem in open()



64
# File 'lib/ffi/libfuse/fuse_file_info.rb', line 64

ffi_attr_accessor(:fh)

#flagsInteger (readonly)

Returns Open flags. Available in open() and release().

Returns:

  • (Integer)

    Open flags. Available in open() and release()

See Also:

  • Fcntl


54
# File 'lib/ffi/libfuse/fuse_file_info.rb', line 54

ffi_attr_reader :flags

#flock_releaseBoolean

If set, lock_owner shall contain a valid value. May only be set in ->release(). Introduced in version 2.9

Returns:

  • (Boolean)

    Indicates that flock locks for this file should be released.



# File 'lib/ffi/libfuse/fuse_file_info.rb', line 87

#flushBoolean (readonly)

Set in flush operation, also maybe set in highlevel lock operation and lowlevel release operation.

Returns:

  • (Boolean)

    Indicates a flush operation.



75
# File 'lib/ffi/libfuse/fuse_file_info.rb', line 75

ffi_bitflag_reader(:bit_flags, :flush)

#keep_cacheBoolean

Returns Can be filled in by open, to indicate, that cached file data need not be invalidated.

Returns:

  • (Boolean)

    Can be filled in by open, to indicate, that cached file data need not be invalidated.



# File 'lib/ffi/libfuse/fuse_file_info.rb', line 80

#lock_ownerInteger (readonly)

Returns Lock owner id. Available in locking operations and flush.

Returns:

  • (Integer)

    Lock owner id. Available in locking operations and flush



58
# File 'lib/ffi/libfuse/fuse_file_info.rb', line 58

ffi_attr_reader :lock_owner

#nonseekableBoolean

Returns Can be filled in by open, to indicate that the file is not seekable.

Returns:

  • (Boolean)

    Can be filled in by open, to indicate that the file is not seekable



# File 'lib/ffi/libfuse/fuse_file_info.rb', line 83

#writepageBoolean (readonly)

In case of a write operation indicates if this was caused by a delayed write from the page cache. If so, then the context's pid, uid, and gid fields will not be valid, and the fh value may not match the fh value that would have been sent with the corresponding individual write requests if write caching had been disabled.

Returns:

  • (Boolean)

    indicates if this was caused by a writepage



# File 'lib/ffi/libfuse/fuse_file_info.rb', line 66