Module: FFI::Libfuse::Adapter::Fuse2Compat

Included in:
Filesystem::VirtualFS
Defined in:
lib/ffi/libfuse/adapter/fuse2_compat.rb

Overview

Wrapper module to assist filesystem written for Fuse3 to be compatible with Fuse2

Defined Under Namespace

Modules: Prepend

Constant Summary collapse

FUSE_CONFIG_ONLY_ATTRIBUTES =

Attributes in Fuse3 config that cannot be set by Fuse3 options. If set via #init_fuse_config the equivalent options will be force set under Fuse 2

%i[hard_remove use_ino readdir_ino direct_io].freeze
FUSE_CONFIG_FLAGS =

Attributes in Fuse3 config that were FuseOperations#fuse_flags in Fuse2. If set via #init_fuse_config the equivalent flags will be added

%i[nullpath_ok].freeze

Instance Method Summary collapse

Instance Method Details

#init_fuse_config(fuse_config, compat) ⇒ Object

This method is abstract.

Define this method to configure the FuseConfig object so that under Fuse2 the config options can be converted to appropriate flags or options

Parameters:

  • fuse_config (FuseConfig)

    the fuse config object

  • compat (Symbol)

    either :fuse2 or :fuse3



# File 'lib/ffi/libfuse/adapter/fuse2_compat.rb', line 99