[VictoriaFalls] Skipp reading blocks indexed at 0.

This commit is contained in:
Drew Galbraith 2023-12-06 23:29:08 -08:00
parent 594a6aac54
commit 8c95e66277
1 changed files with 5 additions and 1 deletions

View File

@ -144,7 +144,11 @@ glcr::ErrorOr<mmth::OwnedMemoryRegion> Ext2Driver::ReadFile(
if (block_inner >= real_block_cnt) { if (block_inner >= real_block_cnt) {
break; break;
} }
blocks_to_read.PushBack(single_indr_block_array[j]); if (single_indr_block_array[j] != 0) {
blocks_to_read.PushBack(single_indr_block_array[j]);
} else {
dbgln("WARN skipping 0 block in inode");
}
} }
} }