]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
stand/kboot: hostdisk isn't a DEVT_DISK, use a different value.
authorWarner Losh <imp@FreeBSD.org>
Sat, 22 Oct 2022 15:09:23 +0000 (09:09 -0600)
committerWarner Losh <imp@FreeBSD.org>
Sun, 23 Oct 2022 01:47:24 +0000 (19:47 -0600)
commit2cb90a7b2efc41e791c589e17127f63ccf24167c
treec2d1bb9dd203297186cc20c18e24e53c3125fc99
parentbb3230e40bea68c1a0fc9ba1bee204bc05d7ea78
stand/kboot: hostdisk isn't a DEVT_DISK, use a different value.

We assume in all the code that a DEVT_DISK uses common/disk.c and/or
common/part.c and we can access a struct disk_devdesc. hostdisk.c
opens raw devices directly, so has no such structures. Define a
kboot-specific DEVT_HOSTDISK and use that instead.

In addition, disk_fmtdev assumes it is working with a struct
disk_devdesc, so write hostdisk_fmtdev as well.

Sponsored by: Netflix
stand/kboot/hostdisk.c
stand/kboot/kboot.h