nicholasbishop / ext4-view-rs

Rust library for reading ext2/ext4 filesystems
https://crates.io/crates/ext4-view
Apache License 2.0
8 stars 2 forks source link

Add Ext4::read_inode_file #88

Closed nicholasbishop closed 4 months ago

nicholasbishop commented 4 months ago

This reads the entire file (identified by inode) into a Vec<u8>. It will be the underlying implementation for various parts of the public API in future commits, including as Ext4::read, Ext4::read_to_string, and Ext4::read_link.

At some point in the future we'll probably want to add a streaming read as well for cases where you don't need the whole file loaded in memory at once.

nicholasbishop commented 4 months ago

Yes, this function should be fully covered by tests of the high-level API.