Module: RFuse::Adapter
- Defined in:
- lib/rfuse/rfuse.rb
Overview
Map callback methods to be compatible for legacy RFuse
All native FuseOperations callback signatures are amended to take FuseContext as the first argument.
A subset of callbacks are documented here where their signatures are further altered to match RFuse
RFuse did not support Fuse3 adapter module
Instance Method Summary collapse
- #default_errno ⇒ Object
-
#fgetattr(ctx, path, ffi) ⇒ Stat
The stat information (or something that can fill a stat).
-
#getattr(ctx, path) ⇒ Stat
The stat information (or something that can fill a stat).
-
#getxattr(ctx, path, name) ⇒ String|nil
abstract
The attribute value or nil if it does not exist.
-
#listxattr(ctx, path) ⇒ Array<String>
abstract
List of attribute names for path.
-
#mknod(context, path, mode, major, minor) ⇒ Object
Create a file node @abstract Fuse Operation mknod.
-
#read(ctx, path, size, offset, info) ⇒ String
abstract
The data, expected to be exactly size bytes.
-
#readdir(context, path, filler, offset, ffi) ⇒ void
List contents of a directory.
-
#readlink(path) ⇒ String
abstract
The link target.
-
#utime(ctx, path, atime, mtime) ⇒ void
abstract
deprecated
Deprecated.
prefer #utimens
- #utimens(ctx, path, atime, mtime) ⇒ void abstract
-
#write(ctx, path, data, offset, info) ⇒ Integer
abstract
Write data to an open file.
Instance Method Details
#default_errno ⇒ Object
306 307 308 |
# File 'lib/rfuse/rfuse.rb', line 306 def default_errno Errno::ENOENT::Errno end |
#fgetattr(ctx, path, ffi) ⇒ Stat
Returns the stat information (or something that can fill a stat).
|
# File 'lib/rfuse/rfuse.rb', line 216
|
#getattr(ctx, path) ⇒ Stat
Returns the stat information (or something that can fill a stat).
|
# File 'lib/rfuse/rfuse.rb', line 211
|
#getxattr(ctx, path, name) ⇒ String|nil
Returns the attribute value or nil if it does not exist.
|
# File 'lib/rfuse/rfuse.rb', line 279
|
#listxattr(ctx, path) ⇒ Array<String>
Returns list of attribute names for path.
|
# File 'lib/rfuse/rfuse.rb', line 286
|
#mknod(context, path, mode, major, minor) ⇒ Object
Create a file node @abstract Fuse Operation mknod
@param [Context] context @param [String] path @param [Integer] mode type & permissions @param [Integer] major @param [Integer] minor
@return[void]
This is called for creation of all non-directory, non-symlink nodes. If the filesystem defines #create, then for regular files that will be called instead.
|
# File 'lib/rfuse/rfuse.rb', line 197
|
#read(ctx, path, size, offset, info) ⇒ String
Returns the data, expected to be exactly size bytes.
|
# File 'lib/rfuse/rfuse.rb', line 243
|
#readdir(context, path, filler, offset, ffi) ⇒ void
This method returns an undefined value.
List contents of a directory
|
# File 'lib/rfuse/rfuse.rb', line 179
|
#readlink(path) ⇒ String
Returns the link target.
|
# File 'lib/rfuse/rfuse.rb', line 192
|
#utime(ctx, path, atime, mtime) ⇒ void
|
# File 'lib/rfuse/rfuse.rb', line 221
|
#utimens(ctx, path, atime, mtime) ⇒ void
This method returns an undefined value.
|
# File 'lib/rfuse/rfuse.rb', line 233
|
#write(ctx, path, data, offset, info) ⇒ Integer
Fuse operation write
Write data to an open file
|
# File 'lib/rfuse/rfuse.rb', line 253
|