Page MenuHomeFreeBSD

loader: want mechanism to avoid RA with bcache
ClosedPublic

Authored by tsoome on Mar 29 2017, 6:11 PM.

Details

Summary

While we have mechanisms in place to protect ourselves against the read
behind the disk end, there is still one corner case. As the GPT
partition table has backup table at the end of the disk, and we yet
do not know the size of the disk (if the wrong size is provided by the
firmware/bios), we need to limit the reads to avoid read ahead in such case.

Test Plan

Tested the build + boot.

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.

Event Timeline

This revision is now accepted and ready to land.Apr 6 2017, 3:09 PM
This revision was automatically updated to reflect the committed changes.