Page MenuHomeFreeBSD

stand: i386: take into account disk sector size for blk calculation
ClosedPublic

Authored by kevans on Sep 8 2022, 12:36 AM.
Tags
None
Referenced Files
Unknown Object (File)
Mon, Feb 9, 3:37 AM
Unknown Object (File)
Sun, Feb 8, 11:33 AM
Unknown Object (File)
Sun, Feb 8, 3:30 AM
Unknown Object (File)
Sat, Feb 7, 8:26 PM
Unknown Object (File)
Sat, Jan 31, 12:35 AM
Unknown Object (File)
Dec 31 2025, 11:54 PM
Unknown Object (File)
Dec 27 2025, 3:54 AM
Unknown Object (File)
Dec 25 2025, 10:53 PM
Subscribers

Details

Summary

disk_blocks assumes BIOSDISK_SECSIZE, but the media may not be using
it. In particular, bioscd on Parallels presents a 2K sector size, so
we end up with a short disk_blocks and subsequent validation fails when
trying to read /boot/lua.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 47290
Build 44177: arc lint + arc unit