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

Consider reworking FileBlocks abstraction to always return extents #249

Open nicholasbishop opened 1 month ago

nicholasbishop commented 1 month ago

The blocks stored in block maps usually have big contiguous ranges. They may also have holes (represented by zero indices). It might make sense to rework file block iteration so that it always exposes an extents based interface, even if the underlying file uses block maps. This could be more efficient, but more importantly makes ext2 holes more natural to represent.