Struct ext4::SuperBlock
[−]
[src]
pub struct SuperBlock<R> { /* fields omitted */ }
The critical core of the filesystem.
Methods
impl<R> SuperBlock<R> where
R: Read + Seek,
[src]
R: Read + Seek,
fn new(inner: R) -> Result<SuperBlock<R>>
[src]
Open a filesystem, and load its superblock.
fn new_with_options(inner: R, options: &Options) -> Result<SuperBlock<R>>
[src]
fn load_inode(&mut self, inode: u32) -> Result<Inode>
[src]
Load a filesystem entry by inode number.
fn root(&mut self) -> Result<Inode>
[src]
Load the root node of the filesystem (typically /
).
fn walk<F>(
&mut self,
inode: &Inode,
path: String,
visit: &mut F
) -> Result<bool> where
F: FnMut(&mut Self, &str, &Inode, &Enhanced) -> Result<bool>,
[src]
&mut self,
inode: &Inode,
path: String,
visit: &mut F
) -> Result<bool> where
F: FnMut(&mut Self, &str, &Inode, &Enhanced) -> Result<bool>,
Visit every entry in the filesystem in an arbitrary order.
The closure should return true
if it wants walking to continue.
The method returns true
if the closure always returned true.
fn resolve_path(&mut self, path: &str) -> Result<DirEntry>
[src]
Parse a path, and find the directory entry it represents. Note that "/foo/../bar" will be treated literally, not resolved to "/bar" then looked up.
fn open(&mut self, inode: &Inode) -> Result<TreeReader<&mut R>>
[src]
Read the data from an inode. You might not want to call this on thigns that aren't regular files.
fn enhance(&mut self, inode: &Inode) -> Result<Enhanced>
[src]
Load extra metadata about some types of entries.