Class: FFI::Libfuse::FuseFileInfo
- Inherits:
-
Object
- Object
- FFI::Libfuse::FuseFileInfo
- Includes:
- StructWrapper
- Defined in:
- lib/ffi/libfuse/fuse_file_info.rb
Overview
FuseFileInfo
Instance Attribute Summary collapse
-
#cache_readdir ⇒ Boolean
Can be filled in by opendir.
-
#direct_io ⇒ Boolean
Can be filled in by open, to use direct I/O on this file.
-
#fh ⇒ Object
Note this fh is weakly referenced by kernel fuse, make sure a reference is kept to prevent it from being garbage collected until release().
-
#flags ⇒ Integer
readonly
Open flags.
-
#flock_release ⇒ Boolean
If set, lock_owner shall contain a valid value.
-
#flush ⇒ Boolean
readonly
Set in flush operation, also maybe set in highlevel lock operation and lowlevel release operation.
-
#keep_cache ⇒ Boolean
Can be filled in by open, to indicate, that cached file data need not be invalidated.
-
#lock_owner ⇒ Integer
readonly
Lock owner id.
-
#nonseekable ⇒ Boolean
Can be filled in by open, to indicate that the file is not seekable.
-
#writepage ⇒ Boolean
readonly
In case of a write operation indicates if this was caused by a delayed write from the page cache.
Attributes included from StructWrapper
Method Summary
Methods included from StructWrapper
Methods included from StructWrapper::ClassMethods
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_readdir ⇒ Boolean
Can be filled in by opendir.
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_io ⇒ Boolean
Returns Can be filled in by open, to use direct I/O on this file.
|
# File 'lib/ffi/libfuse/fuse_file_info.rb', line 77
|
#fh ⇒ Object
Note this fh is weakly referenced by kernel fuse, make sure a reference is kept to prevent it from being garbage collected until release()
64 |
# File 'lib/ffi/libfuse/fuse_file_info.rb', line 64 ffi_attr_accessor(:fh) |
#flags ⇒ Integer (readonly)
Returns Open flags. Available in open() and release().
54 |
# File 'lib/ffi/libfuse/fuse_file_info.rb', line 54 ffi_attr_reader :flags |
#flock_release ⇒ Boolean
If set, lock_owner shall contain a valid value. May only be set in ->release(). Introduced in version 2.9
|
# File 'lib/ffi/libfuse/fuse_file_info.rb', line 87
|
#flush ⇒ Boolean (readonly)
Set in flush operation, also maybe set in highlevel lock operation and lowlevel release operation.
75 |
# File 'lib/ffi/libfuse/fuse_file_info.rb', line 75 ffi_bitflag_reader(:bit_flags, :flush) |
#keep_cache ⇒ Boolean
Returns 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_owner ⇒ Integer (readonly)
Returns 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 |
#nonseekable ⇒ Boolean
Returns Can be filled in by open, to indicate that the file is not seekable.
|
# File 'lib/ffi/libfuse/fuse_file_info.rb', line 83
|
#writepage ⇒ Boolean (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.
|
# File 'lib/ffi/libfuse/fuse_file_info.rb', line 66
|