Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
initrd: fix st->st_size. Solves scandir() page fault.
Previously, st_size for directories was simply set to the number of children. Instead, it's now set to the approximate (it overestimates a bit by design) number of bytes required to store struct dirents for all those children.
- Loading branch information
Showing
1 changed file
with
47 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters