rsext4 0.6.0

A lightweight ext4 file system.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
//! Directory path lookup helpers.

use crate::{
    blockdev::*, bmalloc::InodeNumber, disknode::*, error::*, ext4::Ext4FileSystem,
    loopfile::get_file_inode,
};

/// Resolves a path to its inode number and inode contents.
pub fn get_inode_with_num<B: BlockDevice>(
    fs: &mut Ext4FileSystem,
    device: &mut Jbd2Dev<B>,
    path: &str,
) -> Ext4Result<Option<(InodeNumber, Ext4Inode)>> {
    get_file_inode(fs, device, path)
}