Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
work around Linux kernel efistub limitation with GetInfo()
* The Linux kernel's EFI stub uses a fixed size GetInfo() buffer and has no provision whatsoever for retrying with a larger buffer, as it should, on getting a valid EFI_BUFFER_TOO_SMALL response. * Because the default buffer size we request is larger than what the kernel expects, this leads to the kernel bailing out on EFI_BUFFER_TOO_SMALL. * We therefore reduce the size of the default EFI_FILE_INFO buffer we use to the size that the kernel expects, and use this opportunity to replace the sizeof(EFI_FILE_INFO) constants with the more appropriate SIZE_OF_EFI_FILE_INFO. * Closes #26. * Closes #27. * Closes #38.
- Loading branch information
Showing
3 changed files
with
27 additions
and
28 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
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
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