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)
Sun, Nov 24, 11:38 AM
Unknown Object (File)
Sun, Nov 17, 4:01 PM
Unknown Object (File)
Fri, Nov 15, 2:08 PM
Unknown Object (File)
Wed, Nov 13, 12:34 AM
Unknown Object (File)
Sat, Nov 9, 11:45 AM
Unknown Object (File)
Wed, Oct 30, 5:34 PM
Unknown Object (File)
Tue, Oct 29, 2:40 AM
Unknown Object (File)
Oct 26 2024, 3:21 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