[−][src]Trait yarf::FileSystem
A filesystem on FUSE
Provided methods
fn getattr(&self, _path: String, _stbuf: Option<&mut stat>) -> c_int
Get file attributes.
fn readlink(&self, _path: String, _buf: &mut [u8]) -> 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, _mode: mode_t, _dev: dev_t) -> c_int
Create a file node
fn mkdir(&self, _path: String, _mode: 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, _path1: String, _path2: String) -> c_int
Create a symbolic link
fn rename(&self, _old: String, _new: String) -> c_int
Rename a file
fn link(&self, _path1: String, _path2: String) -> c_int
Create a hard link to a file
fn chmod(&self, _path: String, _mode: mode_t) -> c_int
Change the permission bits of a file
fn chown(&self, _path: String, _uid: uid_t, _gid: gid_t) -> c_int
Change the owner and group of a file
fn truncate(&self, _path: String, _offset: off_t) -> c_int
Change the size of a file
fn utime(&self, _path: String, _utimbuf: Option<&mut utimbuf>) -> c_int
Change the access and/or modification times of a file
fn open(&self, _path: String, _fi: Option<&mut FuseFileInfo>) -> c_int
File open operation
fn read(
&self,
_path: String,
_buf: &mut [u8],
_offset: off_t,
_fi: Option<&mut FuseFileInfo>
) -> c_int
&self,
_path: String,
_buf: &mut [u8],
_offset: off_t,
_fi: Option<&mut FuseFileInfo>
) -> c_int
Read data from an open file
fn write(
&self,
_path: String,
_buf: &[u8],
_offset: off_t,
_fi: Option<&mut FuseFileInfo>
) -> c_int
&self,
_path: String,
_buf: &[u8],
_offset: off_t,
_fi: Option<&mut FuseFileInfo>
) -> c_int
Write data to an open file
fn statfs(&self, _path: String, _statvfs: Option<&mut statvfs>) -> c_int
Get file system statistics
fn flush(&self, _path: String, _fi: Option<&mut FuseFileInfo>) -> c_int
Possibly flush cached data
fn release(&self, _path: String, _fi: Option<&mut FuseFileInfo>) -> c_int
Release an open file
fn fsync(
&self,
_path: String,
_arg2: c_int,
_fi: Option<&mut FuseFileInfo>
) -> c_int
&self,
_path: String,
_arg2: c_int,
_fi: Option<&mut FuseFileInfo>
) -> c_int
Synchronize file contents
fn setxattr(
&self,
_path: String,
_name: String,
_value: &[u8],
_arg5: c_int,
_arg6: u32
) -> c_int
&self,
_path: String,
_name: String,
_value: &[u8],
_arg5: c_int,
_arg6: u32
) -> c_int
fn getxattr(
&self,
_path: String,
_name: String,
_value: &[u8],
_arg5: u32
) -> c_int
&self,
_path: String,
_name: String,
_value: &[u8],
_arg5: u32
) -> c_int
fn listxattr(&self, _path: String, _buf: &mut [u8]) -> c_int
List extended attributes
fn removexattr(&self, _path: String, _name: String) -> c_int
Remove extended attributes
fn opendir(&self, _path: String, _fi: Option<&mut FuseFileInfo>) -> c_int
Open directory
fn readdir(
&self,
_path: String,
_filler: ReadDirFiller,
_offset: off_t,
_fi: Option<&mut FuseFileInfo>
) -> c_int
&self,
_path: String,
_filler: ReadDirFiller,
_offset: off_t,
_fi: Option<&mut FuseFileInfo>
) -> c_int
Read directory
fn releasedir(&self, _path: String, _fi: Option<&mut FuseFileInfo>) -> c_int
Release directory
fn fsyncdir(
&self,
_path: String,
_arg2: c_int,
_fi: Option<&mut FuseFileInfo>
) -> c_int
&self,
_path: String,
_arg2: c_int,
_fi: Option<&mut FuseFileInfo>
) -> c_int
Synchronize directory contents
fn access(&self, _path: String, _mode: c_int) -> c_int
Check file access permissions
fn create(
&self,
_path: String,
_mode: mode_t,
_fi: Option<&mut FuseFileInfo>
) -> c_int
&self,
_path: String,
_mode: mode_t,
_fi: Option<&mut FuseFileInfo>
) -> c_int
Create and open a file
fn ftruncate(
&self,
_path: String,
_offset: off_t,
_fi: Option<&mut FuseFileInfo>
) -> c_int
&self,
_path: String,
_offset: off_t,
_fi: Option<&mut FuseFileInfo>
) -> c_int
Change the size of an open file
fn fgetattr(
&self,
_path: String,
_stbuf: Option<&mut stat>,
_fi: Option<&mut FuseFileInfo>
) -> c_int
&self,
_path: String,
_stbuf: Option<&mut stat>,
_fi: Option<&mut FuseFileInfo>
) -> c_int
Get attributes from an open file
fn lock(
&self,
_path: String,
_fi: Option<&mut FuseFileInfo>,
_cmd: c_int,
_arg3: *mut flock
) -> c_int
&self,
_path: String,
_fi: Option<&mut FuseFileInfo>,
_cmd: c_int,
_arg3: *mut flock
) -> c_int
Perform POSIX file locking operation
fn utimens(&self, _path: String, _tv: 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