Expand description
This crate provides read-only access to ext4 filesystems.
§Example
Load an ext4 filesystem from an in-memory buffer and then read a file from the filesystem:
use ext4_view::{Ext4, Path};
fn in_memory_example(fs_data: Vec<u8>) -> Vec<u8> {
let ext4 = Ext4::load(Box::new(fs_data)).unwrap();
ext4.read("/some/file/path").unwrap()
}Structs§
- Directory entry.
- Name of a
DirEntry, stored as a reference. - Read-only access to an ext4 filesystem.
- File system features that affect whether the data can be read.
- Metadata information about a file.
- Reference path type.
- Owned path type.
- Iterator over each
DirEntryin a directory inode.
Enums§
- Component of a
Path. - Error type used in
Ext4Error::Corruptwhen the filesystem is corrupt in some way. - Error returned when
DirEntryNameconstruction fails. - Common error type for all
Ext4operations. - Error type used in
Ext4Error::Incompatiblewhen the filesystem cannot be read due to incomplete support in this library.
Traits§
- Interface used by
Ext4to read the filesystem data from a storage file or device. - Underlying error type for
Ext4Error::Io.