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)
Sat, Oct 11, 11:08 PM
Unknown Object (File)
Sun, Oct 5, 1:29 AM
Unknown Object (File)
Sun, Sep 28, 1:29 PM
Unknown Object (File)
Thu, Sep 25, 11:23 AM
Unknown Object (File)
Sat, Sep 20, 2:35 PM
Unknown Object (File)
Sat, Sep 20, 10:55 AM
Unknown Object (File)
Sep 2 2025, 3:35 PM
Unknown Object (File)
Aug 17 2025, 7:58 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 Not Applicable
Unit
Tests Not Applicable