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

(cherry picked from commit 1a13008e9874748958a3415a3d0c34b95acbf2e2)

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
rG379f5668e24a: stand/zfs: Fix memory leaking on error cases
Branches
Unknown
Tags
Unknown