Trait simply_fuse::Filesystem [−][src]
pub trait Filesystem {
fn lookup(&mut self, _parent: INode, _name: &OsStr) -> FSResult<Lookup> { ... }
fn getattr(&mut self, _inode: INode) -> FSResult<FileAttributes> { ... }
fn setattr(
&mut self,
_inode: INode,
_attr: SetFileAttributes
) -> FSResult<FileAttributes> { ... }
fn readdir(&mut self, _dir: INode, _offset: u64) -> FSResult<Vec<DirEntry>> { ... }
fn read(&mut self, _ino: INode, _offset: u64, _size: u32) -> FSResult<&[u8]> { ... }
fn write<T: BufRead>(
&mut self,
_ino: INode,
_offset: u64,
_size: u32,
_buf: T
) -> FSResult<u32> { ... }
}
Provided methods
fn getattr(&mut self, _inode: INode) -> FSResult<FileAttributes>
fn setattr(
&mut self,
_inode: INode,
_attr: SetFileAttributes
) -> FSResult<FileAttributes>
Reads a directory.
Warning
This method must include the “.” and “..” directories, as well as properly accounting
for offset
. If not, some operations may get stuck in an infinite loop while trying to
read a directory.