Calculate LBAs

This commit is contained in:
Jaby 2022-10-16 14:47:21 +02:00
parent 27fc25ab32
commit 0a0672c115
1 changed files with 6 additions and 1 deletions

View File

@ -62,7 +62,12 @@ impl CDDesc {
LayoutMut::PathTables => {
cur_lba = update_lba(&mut path_table_properties, cur_lba, Self::DEFAULT_DATA_SIZE_FOR_NOW);
},
_ => ()
LayoutMut::Directory{name: _, properties} => {
cur_lba = update_lba(properties, cur_lba, Self::DEFAULT_DATA_SIZE_FOR_NOW)
},
LayoutMut::File(file) => {
cur_lba = update_lba(&mut file.properties, cur_lba, Self::DEFAULT_DATA_SIZE_FOR_NOW);
}
}
println!("cur_lba: {}", cur_lba);