more refactoring
continuous-integration/drone/push Build is passing

Signed-off-by: Julien CLEMENT <julien.clement@epita.fr>
This commit is contained in:
juju committed 2022-12-25 13:02:25 +01:00
1 parent 0ad8ba9adb
commit 2e7415e1e6
2 files changed
+10 -5

No files matched your search

+2 -5
View File
@@ -46,7 +46,7 @@ impl FileSystem for IsoFS {
serial_println!("{:?}", curr_entry.idf_len);
serial_println!("{:?}", alloc::str::from_utf8(curr_entry.get_idf()).unwrap());
if curr_entry.get_idf() == path_component.as_bytes() {
if curr_entry.matches(path_component) {
serial_println!("Found {}", path_component);
curr_entry_block = read_block(curr_entry.data_blk.le).await;
curr_entry = unserialize(curr_entry_block.as_ptr());
@@ -54,7 +54,7 @@ impl FileSystem for IsoFS {
}
// Next entry
curr_entry = next_entry(curr_entry);
curr_entry = curr_entry.next_entry();
}
}
@@ -64,9 +64,6 @@ impl FileSystem for IsoFS {
}
}
pub fn next_entry(entry: &IsoDir) -> &IsoDir {
crate::utils::ref_raw_offset(entry, entry.dir_size as isize)
}
pub async fn get_prim_vol_desc() -> IsoPrimVolDesc {
let desc_block = read_block(iso9660::ISO_PRIM_VOLDESC_BLOCK).await;
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.