HomeFreeBSD

kboot: Rework hostdisk.c to allow easier ZFS support.

Description

kboot: Rework hostdisk.c to allow easier ZFS support.

Keep a list of disks and partitions that we have. Keep track of the
sizes of the media and sector and use that to implement DIOCGMEDIASIZE
and DIOCGSECTORSIZE. Proivde a way to lookup disks by name.

Sponsored by: Netflix
Reviewed by: kevans (prior version)
Differential Revision: https://reviews.freebsd.org/D38013

Details

Provenance
impAuthored on Jan 13 2023, 9:20 PM
Reviewer
kevans
Differential Revision
D38013: kboot: Rework hostdisk.c to allow easier ZFS support.
Parents
rG5385c7e13b06: stand/zfs: Fix memory leaking on error cases
Branches
Unknown
Tags
Unknown