HomeFreeBSD

loader: always set media size from partition.

Description

loader: always set media size from partition.

The disk access is validated by using partition table definitions, therefore
we have no need for if statements, just set the disk size.

Of course the partition table itself may be incorrect/inconsistent, but if
so, we are in trouble anyhow.

Differential Revision: https://reviews.freebsd.org/D17822

Details

Provenance
tsoomeAuthored on
Differential Revision
D17822: loader: always set media size from partition.
Parents
rS340214: Syscall fuzzing unmount(4) as root is too disruptive.
Branches
Unknown
Tags
Unknown