Page MenuHomeFreeBSD

stand/ofw: ofw_disk isn't really a disk
ClosedPublic

Authored by imp on Nov 10 2022, 5:26 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sat, Feb 1, 9:35 PM
Unknown Object (File)
Mon, Jan 27, 5:07 PM
Unknown Object (File)
Thu, Jan 23, 6:49 PM
Unknown Object (File)
Thu, Jan 23, 6:26 PM
Unknown Object (File)
Tue, Jan 21, 5:19 PM
Unknown Object (File)
Fri, Jan 17, 5:46 PM
Unknown Object (File)
Jan 7 2025, 2:33 AM
Unknown Object (File)
Nov 29 2024, 7:22 AM
Subscribers

Details

Summary

The rest of the code in the tree assumes that a DEVT_DISK uses a
disk_devdesc to represent the device. However ofw_disk diesn't, so we
can't use disk_fmtdev, nor disk_parsedev. ofw needs to have a
dv_match-like routine to use devpasrse, though, since we have two
drivers (net and block) that claim the same sort of devices (eg
/path/to/ofw-dev) based on the device-type property. In the interim, we
can't use devmatch and ofw_disk's and the default net driver's parsing
is offloaded ofw_parsedev.

Sponsored by: Netflix

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Skipped
Unit
Tests Skipped
Build Status
Buildable 48275
Build 45161: arc lint + arc unit