[−][src]Trait yarf::FileSystem
A filesystem on FUSE
Provided methods
fn getattr(&self, _path: String, _stbuf: *mut stat) -> c_int
Get file attributes.
fn readlink(&self, _path: String, _arg2: *mut c_char, _arg3: usize) -> c_int
Read the target of a symbolic link
fn getdir(
&self,
_path: String,
_arg2: FuseDirHandler,
_arg3: FuseDirFil
) -> c_int
&self,
_path: String,
_arg2: FuseDirHandler,
_arg3: FuseDirFil
) -> c_int
fn mknod(&self, _path: String, _arg2: mode_t, _arg3: dev_t) -> c_int
Create a file node
fn mkdir(&self, _path: String, _arg2: mode_t) -> c_int
Create a directory
fn unlink(&self, _path: String) -> c_int
Remove a file
fn rmdir(&self, _path: String) -> c_int
Remove a directory
fn symlink(&self, _path: String, _arg2: *const c_char) -> c_int
Create a symbolic link
fn rename(&self, _path: String, _arg2: *const c_char) -> c_int
Rename a file
fn link(&self, _path: String, _arg2: *const c_char) -> c_int
Create a hard link to a file
fn chmod(&self, _path: String, _arg2: mode_t) -> c_int
Change the permission bits of a file
fn chown(&self, _path: String, _arg2: uid_t, _arg3: gid_t) -> c_int
Change the owner and group of a file
fn truncate(&self, _path: String, _arg2: off_t) -> c_int
Change the size of a file
fn utime(&self, _path: String, _arg2: *mut utimbuf) -> c_int
Change the access and/or modification times of a file
fn open(&self, _path: String, _fi: *mut FuseFileInfo) -> c_int
File open operation
fn read(
&self,
_path: String,
_buf: *mut c_char,
_size: usize,
_offset: off_t,
_fi: *mut FuseFileInfo
) -> c_int
&self,
_path: String,
_buf: *mut c_char,
_size: usize,
_offset: off_t,
_fi: *mut FuseFileInfo
) -> c_int
Read data from an open file
fn write(
&self,
_path: String,
_arg2: *const c_char,
_arg3: usize,
_arg4: off_t,
_fi: *mut FuseFileInfo
) -> c_int
&self,
_path: String,
_arg2: *const c_char,
_arg3: usize,
_arg4: off_t,
_fi: *mut FuseFileInfo
) -> c_int
Write data to an open file
fn statfs(&self, _path: String, _arg2: *mut statvfs) -> c_int
Get file system statistics
fn flush(&self, _path: String, _fi: *mut FuseFileInfo) -> c_int
Possibly flush cached data
fn release(&self, _path: String, _fi: *mut FuseFileInfo) -> c_int
Release an open file
fn fsync(&self, _path: String, _arg2: c_int, _fi: *mut FuseFileInfo) -> c_int
Synchronize file contents
fn setxattr(
&self,
_path: String,
_arg2: *const c_char,
_arg3: *const c_char,
_arg4: usize,
_arg5: c_int,
_arg6: u32
) -> c_int
&self,
_path: String,
_arg2: *const c_char,
_arg3: *const c_char,
_arg4: usize,
_arg5: c_int,
_arg6: u32
) -> c_int
fn getxattr(
&self,
_path: String,
_arg2: *const c_char,
_arg3: *mut c_char,
_arg4: usize,
_arg5: u32
) -> c_int
&self,
_path: String,
_arg2: *const c_char,
_arg3: *mut c_char,
_arg4: usize,
_arg5: u32
) -> c_int
fn listxattr(&self, _path: String, _arg2: *mut c_char, _arg3: usize) -> c_int
List extended attributes
fn removexattr(&self, _path: String, _arg2: *const c_char) -> c_int
Remove extended attributes
fn opendir(&self, _path: String, _fi: *mut FuseFileInfo) -> c_int
Open directory
fn readdir(
&self,
_path: String,
_buf: *mut c_void,
_filler: FuseFillDir,
_offset: off_t,
_fi: *mut FuseFileInfo
) -> c_int
&self,
_path: String,
_buf: *mut c_void,
_filler: FuseFillDir,
_offset: off_t,
_fi: *mut FuseFileInfo
) -> c_int
Read directory
fn releasedir(&self, _path: String, _fi: *mut FuseFileInfo) -> c_int
Release directory
fn fsyncdir(&self, _path: String, _arg2: c_int, _fi: *mut FuseFileInfo) -> c_int
Synchronize directory contents
fn access(&self, _path: String, _arg2: c_int) -> c_int
Check file access permissions
fn create(&self, _path: String, _arg2: mode_t, _fi: *mut FuseFileInfo) -> c_int
Create and open a file
fn ftruncate(
&self,
_path: String,
_arg2: off_t,
_fi: *mut FuseFileInfo
) -> c_int
&self,
_path: String,
_arg2: off_t,
_fi: *mut FuseFileInfo
) -> c_int
Change the size of an open file
fn fgetattr(
&self,
_path: String,
_stbuf: *mut stat,
_fi: *mut FuseFileInfo
) -> c_int
&self,
_path: String,
_stbuf: *mut stat,
_fi: *mut FuseFileInfo
) -> c_int
Get attributes from an open file
fn lock(
&self,
_path: String,
_arg2: *mut FuseFileInfo,
_cmd: c_int,
_arg3: *mut flock
) -> c_int
&self,
_path: String,
_arg2: *mut FuseFileInfo,
_cmd: c_int,
_arg3: *mut flock
) -> c_int
Perform POSIX file locking operation
fn utimens(&self, _path: String, _tv: *const timespec) -> c_int
Change the access and modification times of a file with
fn bmap(&self, _path: String, _blocksize: usize, _idx: *mut u64) -> c_int
Map block index within file to block index within device