HomeFreeBSD

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

Description

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

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.

PR: 233098
Reviewed by: imp, tsoome
MFC after: 1 week
Differential Revision: https://reviews.freebsd.org/D36490

Details

Provenance
kevansAuthored on Sep 8 2022, 12:35 AM
Reviewer
imp
Differential Revision
D36490: stand: i386: take into account disk sector size for blk calculation
Parents
rG7d90ce7cae63: Use the cached dc zva length in arm64 memset
Branches
Unknown
Tags
Unknown