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::path_to_inode #89

Closed nicholasbishop closed 3 months ago

nicholasbishop commented 4 months ago

This will be used to resolve paths passed into high-level APIs like Ext4::read.

In the future we'll want to support resolving paths passed to high-level operations such as Ext4::read, meaning that symlinks and '..' get resolved the same way as in Linux. However, path resolution is somewhat complicated so for now we'll just return an error if a symlink component is encountered.

(Symlinks are also a common source of logic and security bugs, so even when symlink resolution support is added, we might want to add a way to turn it on/off.)