Page MenuHomeFreeBSD

loader: md: Use default func for fmtdev and parsedev
ClosedPublic

Authored by manu on Jan 27 2023, 6:35 AM.
Tags
None
Referenced Files
Unknown Object (File)
Fri, Nov 28, 10:45 PM
Unknown Object (File)
Thu, Nov 27, 5:40 AM
Unknown Object (File)
Nov 19 2025, 1:35 AM
Unknown Object (File)
Nov 5 2025, 12:38 PM
Unknown Object (File)
Nov 2 2025, 11:15 AM
Unknown Object (File)
Oct 29 2025, 10:41 AM
Unknown Object (File)
Oct 29 2025, 10:30 AM
Unknown Object (File)
Oct 29 2025, 10:25 AM
Subscribers

Details

Summary

The default function are enough for md so use them instead of the
disks ones that doesn't work for it anymore.

Sponsored by: Beckhoff Automation GmbH & Co. KG
MFC after: now

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

manu requested review of this revision.Jan 27 2023, 6:35 AM
manu retitled this revision from leader: md: Use default func for fmtdev and parsedev to loader: md: Use default func for fmtdev and parsedev.Jan 27 2023, 7:10 AM

This will work and won't break anything.
It does mean, though, you can't have things like md0p2:, but IMHO, that's fine. There's no use cases for that and this makes things simpler and easier.
I'll have to see if this means we can make it not be a DEVT_DISK or not, but that's a longer-term project of mine ending that abuse ...

This revision is now accepted and ready to land.Jan 27 2023, 5:52 PM