Page MenuHomeFreeBSD

loader ptblread() is broken with >512B sectors
ClosedPublic

Authored by tsoome on Oct 31 2017, 11:48 AM.
Tags
None
Referenced Files
F166851195: D12847.diff
Mon, Aug 17, 2:57 AM
Unknown Object (File)
Tue, Aug 4, 6:59 AM
Unknown Object (File)
Mon, Aug 3, 5:52 PM
Unknown Object (File)
Mon, Aug 3, 2:55 AM
Unknown Object (File)
Sun, Aug 2, 9:19 AM
Unknown Object (File)
Jun 10 2026, 12:08 PM
Unknown Object (File)
Jun 9 2026, 8:11 AM
Unknown Object (File)
Jun 9 2026, 7:04 AM
Subscribers
None

Details

Summary

The loader strategy() function is assuming 512B blocks, so we need to adjust
ptblread() for other sector sizes.

Test Plan

use lsdev -v from loader OK prompt to confirm the partition table.

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

I will test this on my macbookpro NVMe where FreeBSD currently cannot read the partition table.

This looks good to me.... It will certainly be a NOP for 512 byte sectors.

This revision is now accepted and ready to land.Oct 31 2017, 3:10 PM
This revision now requires review to proceed.Oct 31 2017, 8:05 PM
This revision was automatically updated to reflect the committed changes.