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
F173441431: D36490.diff
Fri, Sep 25, 11:13 PM
Unknown Object (File)
Tue, Sep 22, 8:03 PM
Unknown Object (File)
Tue, Sep 22, 7:58 PM
Unknown Object (File)
Sun, Sep 20, 4:00 PM
Unknown Object (File)
Thu, Sep 10, 9:14 PM
Unknown Object (File)
Thu, Sep 10, 8:41 PM
Unknown Object (File)
Wed, Sep 9, 1:49 AM
Unknown Object (File)
Tue, Sep 8, 8:39 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